MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / test_all_abstain

Function test_all_abstain

tests/test_ensemble.py:27–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27def test_all_abstain():
28 votes = [TierVote(tier_id=None, confidence=0.0), TierVote(tier_id=None, confidence=0.0)]
29 ens = Ensemble(weights=[0.5, 0.5])
30 result = ens.decide(votes)
31 assert result.tier_id is None
32
33
34def test_risk_tolerance_shifts_threshold():

Callers

nothing calls this directly

Calls 3

decideMethod · 0.95
TierVoteClass · 0.90
EnsembleClass · 0.90

Tested by

no test coverage detected