Documentation Index
Fetch the complete documentation index at: https://docs.kaireonai.com/llms.txt
Use this file to discover all available pages before exploring further.
modelType: "scorecard" — a points-based scoring model where each rule contributes a configurable number of points when its condition matches. Points accumulate from a base score, then normalize to a probability via sigmoid (or linear). The math is intentionally simple so operators, auditors, and regulators can read it line-by-line.
When to use
- Day-1 launch — no interaction history yet. Hand-craft rules from domain expertise.
- Auditability is non-negotiable — financial services, healthcare, anything regulated. Every rule fired is recorded in the score explanation.
- Cold-start mitigation while you build a real model — scorecard runs as the active model while you accumulate outcomes for a future
bayesianorgradient_boostedcandidate.
Score.overrides[].
The math
eq, neq, gt, gte, lt, lte, in, not_in, contains, starts_with) to one attribute on the candidate or its customer enrichment.
Fixture config
platform/scripts/proof-algorithms-e2e.mts shows it scores 0.917 for a customer with {credit_score: 760, income: 95000, age: 38, segment: "Gold"} — 4 of 5 rules fire (the super-prime bonus at 800+ doesn’t, credit_score 760 < 800).
Training
There’s no training step. Operators add and tune rules through the Algorithms → Models → Scorecard UI. Each rule’spoints value is the only knob.
If you want data-driven rule weights, train a logistic_regression model on the same predictors and read off the weights as a starting point for scorecard points.
Score interpretation
score∈[0, 1]— the engine consumes this as the propensity component (P) in PRIE, or as the raw score inpropensitystrategy.rawScore∈[minScore, maxScore]— the pre-normalization point total. Operators reading the trace can tell exactly how many points each rule contributed.explanations[]— one entry per rule, with{matched, points, field, expected, actual, description}. This is the audit trail.
Pitfalls
- All-or-nothing rule sets — if all your rules are
points: 10and only one fires per candidate, every score is 50 or 60. Vary the point values so high-value rules can dominate. - Forgetting to set
minScore/maxScore— defaults are[0, 100]. If your rules total > 100 in worst-case, the sigmoid will saturate at 1.0 for every prime customer. - No rules at all — every candidate scores
baseScorenormalized (= 0.5 by default). Documented in T20 Test C of the proof bundle, wherescorecard-v2was created with zero rules and Platinum’s adaptationpositiveRate=0triggered the starvation bug (now fixed via the propensity floor). - Categorical fields with high cardinality —
eqrules need one rule per value. Useinwith an array instead.
Cross-reference
- Algorithm Selection Guide for when scorecard is the right pick.
- Scoring Strategies for how the score is consumed by the Score node.