Numerical Instability in Tests
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- testing-qa
調査の方向性
Start with TestLaplaceDistribution.test_check_statistics_for_geo_unit_values and reproduce the failure in CI or the reported test environment. Investigate the sampling statistics and assertion tolerance; done means the test no longer flakes or fails while preserving meaningful checks for the Laplace distribution.
索引モデルが issue の本文から書いたものです。
説明
Description
I have noticed one of the tests flaps and sometimes fails, I guess its due to some numerical instability?
https://github.com/OpenMined/PyDP/runs/2679233108?check_suite_focus=true
______ TestLaplaceDistribution.test_check_statistics_for_geo_unit_values _______
[gw1] linux -- Python 3.6.13 /home/runner/.cache/pypoetry/virtualenvs/pydp-KC8mieZ4-py3.6/bin/python
self = <test_distributions.TestLaplaceDistribution object at 0x7fe191d630b8>
def test_check_statistics_for_geo_unit_values(self):
ld = LaplaceDistribution(epsilon=1.0, sensitivity=1.0)
samples = [ld.sample(scale=1.0) for _ in range(k_num_geometric_samples)]
mean = dp.util.mean(samples)
var = dp.util.variance(samples)
assert expect_near(0.0, mean, 0.01)
assert expect_near(2.0, var, 0.1)
assert expect_near(0.0, skew(samples, mean, math.sqrt(var)), 0.1)
> assert expect_near(3.0, kurtosis(samples, mean, var), 0.1)
E assert False
E + where False = expect_near(3.0, 3.1097853317836956, 0.1)
E + where 3.1097853317836956 = kurtosis([-0.18739762318364228, 0.19336953977835947, 2.2439366761800557, -0.120824026083028, 0.3653907802163303, 2.181137632465834, ...], 0.00018447984155104587, 2.0099539175529073)
How to Reproduce
See CI
Expected Behavior
Not failing.
Screenshots
See above
System Information
See Link
Additional Context
See above link
- 主要言語
- 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
-
bug status/needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
prowler-cloud/prowler#12887 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area: desktop platform: macos priority: p3 status: ready type: enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
use-agent-os/agent-os#3484 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
open-telemetry/opentelemetry-python-contrib#5113 · コメント 2 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
external
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
langchain-ai/docs#6255 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信