MCPcopy
hub / github.com/ray-project/ray / test_zero_samples

Method test_zero_samples

python/ray/data/tests/test_stats.py:2322–2327  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2320 """
2321
2322 def test_zero_samples(self):
2323 t = Timer()
2324 assert t.percentile(0.0) == 0
2325 assert t.percentile(0.5) == 0
2326 assert t.percentile(0.9) == 0
2327 assert t.percentile(1.0) == 0
2328
2329 def test_existing_aggregate_stats_unchanged(self):
2330 # Sanity: wiring DistributionTracker into add() must not perturb

Callers

nothing calls this directly

Calls 2

percentileMethod · 0.95
TimerClass · 0.90

Tested by

no test coverage detected