Skip to main content

Module scoring

Module scoring 

Source
Expand description

Composite memory recall scoring — recency, importance, relevance, and Ebbinghaus strength.

Structs§

ScoringWeights
Weights for composite memory scoring (Park et al., 2023).

Constants§

STRENGTH_DECAY_RATE
Ebbinghaus strength decay rate (per hour). Default: 0.005.

Functions§

composite_score
Composite score: alpha * recency + beta * importance + gamma * relevance + delta * strength.
effective_strength
Compute effective strength with Ebbinghaus decay from last_accessed.
importance_score
Normalize importance [1, 10] to [0.0, 1.0].
recency_score
Recency score: e^(-decay_rate * hours), returns [0.0, 1.0].
strength_score
Strength score: identity mapping (already in [0.0, 1.0]).