Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Test datatype for when passed for compuation

オープン
#204 コメント 4 件 リアクション 0 件 担当者 1 名 GitHub で見る

@codeboy5 がすでに取り組んでいます。

2020年8月1日 から。

評価

この issue はまだ評価されていません。

説明

Severity: 3 - Medium :unamused: Status: Available :wave: Type: Improvement :chart_with_upwards_trend:

Description

When we call the result function, we just pass the python list as it is.

x = pydp.BoundedMean(1.0)
x.result([1,2,3,4])

What would be great is mention the datatype of the list in another argument,
x.result([1,2,3,4], 'int')
We want the new function definition to have the datatype as one of the argument, with float as the default argument.
Note: The function definition of result below is for representation purpose and the original code will be in c++ (pybind11).

def result(list, datatype= 'float'): 
  pass

The idea behind doing this is if we know the datatype, the underlying c++ code can become a lot efficient as right now, we are just converting everything to float.

主要言語
Python
スター
550
フォーク
143
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenMined/PyDP のほかの issue

OpenMined/PyDP の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。