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

Class LearnedState

uncommon_route/persistence.py:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18@dataclass
19class LearnedState:
20 signal_weights: list[float] = field(default_factory=lambda: [0.55, 0.45])
21 calibration_temperature: float = 1.0
22 shadow_consecutive_wins: int = 0
23 shadow_promoted: bool = False
24 embedding_index_size: int = 0
25 model_priors: dict[str, Any] = field(default_factory=dict)
26
27
28def save_state(state: LearnedState, directory: Path) -> None:

Callers 6

test_save_load_roundtripFunction · 0.90
test_reset_stateFunction · 0.90
on_shutdownFunction · 0.90
load_stateFunction · 0.85
reset_stateFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_save_load_roundtripFunction · 0.72
test_reset_stateFunction · 0.72