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

Function test_weights_stay_normalized

tests/test_learning_weights.py:24–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def test_weights_stay_normalized():
25 tracker = SignalWeightTracker(initial_weights=[0.4, 0.3, 0.3])
26 for _ in range(100):
27 tracker.update([0, 1, 2], [False, False, False], 0)
28 total = sum(tracker.weights)
29 assert abs(total - 1.0) < 0.01
30
31
32def test_learning_rate_decays():

Callers

nothing calls this directly

Calls 2

updateMethod · 0.95
SignalWeightTrackerClass · 0.90

Tested by

no test coverage detected