repoBaseRate
repoBaseRate(
rules,opts?):number
Defined in: src/learnings-lifecycle.ts:92
Compute the repo’s base helpful rate across ALL rules (active + promoted + retired). Using all rules (not just active) prevents a survivorship cascade where retiring bad rules inflates the base rate, then that higher rate retires the next-worst, etc.
Only rules with injectedCount > 0 contribute to the denominator. If total injected < minN, falls back to defaultRate (not enough data).
Parameters
Section titled “Parameters”Learning[]
defaultRate?
Section titled “defaultRate?”number
number
Returns
Section titled “Returns”number