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

Function test_unanimous_vote

tests/test_ensemble.py:5–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5def test_unanimous_vote():
6 votes = [TierVote(tier_id=0, confidence=0.8), TierVote(tier_id=0, confidence=0.7)]
7 ens = Ensemble(weights=[0.5, 0.5])
8 result = ens.decide(votes)
9 assert result.tier_id == 0
10 assert result.confidence > 0.5
11
12
13def test_disagreement_goes_with_higher_weight():

Callers

nothing calls this directly

Calls 3

decideMethod · 0.95
TierVoteClass · 0.90
EnsembleClass · 0.90

Tested by

no test coverage detected