Test datatype for when passed for compuation
@codeboy5 がすでに取り組んでいます。
2020年8月1日 から。
評価
この issue はまだ評価されていません。
説明
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 はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenMined/PyDP のほかの issue
-
Type: New Feature :heavy_plus_sign:
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
Type: Question :grey_question:
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
-
Type: Question :grey_question:
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
-
Type: Improvement :chart_with_upwards_trend:
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
Type: New Feature :heavy_plus_sign:
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
hcocena オープンpolicies-accepted pre-review precheck-passed
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Bioconductor/BiocContributions#214 · コメント 5 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
TencentCloud/Octop#1169 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
521xueweihan/HelloGitHub#3778 ·
-
The version checker's trailing attribute region has no control for a less-than inside a quoted value オープンarea: dashboard area: tests bug perceived difficulty: 2 python
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Nitjsefnie-Harness-Commons/daedalus#1105 · コメント 1 件 ·