scorecard_monotone_report
def scorecard_monotone_report(scorecard: dict, constraints) -> dict
from compileml.compile import scorecard_monotone_report
Aggregate (necessary-and-sufficient) check on a depth ≤ 2 scorecard.
For each constrained feature *f* and each adjacent pair of its bins, the worst-case increment of the full function is the main-effect delta plus, for every interaction grid involving *f*, the minimum delta over the partner's bins. The constraint holds iff every worst-case increment carries the declared sign. This certifies the printed tables themselves — a validator can repeat it in a spreadsheet.
Parameters#
| Name | Type | Default | Kind |
|---|---|---|---|
| scorecard | dict | required | positional |
| constraints | — | required | positional |
Returns#
dict