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

Function test_learning_rate_decays

tests/test_learning_weights.py:32–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31
32def test_learning_rate_decays():
33 tracker1 = SignalWeightTracker(initial_weights=[0.5, 0.5])
34 tracker1.update([0, 1], [False, False], 0)
35 delta_1 = abs(tracker1.weights[0] - 0.5)
36
37 tracker2 = SignalWeightTracker(initial_weights=[0.5, 0.5])
38 tracker2._update_count = 1000
39 tracker2.update([0, 1], [False, False], 0)
40 delta_2 = abs(tracker2.weights[0] - 0.5)
41 assert delta_2 < delta_1
42
43
44def test_update_count_tracks():

Callers

nothing calls this directly

Calls 2

updateMethod · 0.95
SignalWeightTrackerClass · 0.90

Tested by

no test coverage detected