Examples
Start here
Section titled “Start here”API ergonomics notebook
Section titled “API ergonomics notebook”This is the recommended entry point for learning RiskBands with a workflow that feels closer to pandas and sklearn.
This material shows:
fit(df, y="target", column="score", time_col="month")transform(df["score"])summary()binning_table()score_details()diagnostics()- comparison between
standardandstable
Temporal stability quickstart
Section titled “Temporal stability quickstart”This flow shows score_table(), audit_table(), JSON/bundle export, and public
plots for temporal reading.
Missing policy with pandas and PySpark
Section titled “Missing policy with pandas and PySpark”Use these scripts when the main question is how to handle missing values in an auditable way without opaque imputation.
- pandas missing policy demo
- PySpark missing policy demo
- Missing policy comparison diagnostic
- Synthetic credit-risk missing merge example
They show:
missing_policy="standard"missing_policy="separate_bin"missing_policy="forbid"missing_policy="merge"withnearest_event_ratemissing_policy="merge"withnearest_woemissing_profile_missing_decision_log_missing_merge_candidates_- bundle fields for missing policy and missing merge
- optional guard for PySpark
- comparison across
standard,separate_bin,forbid,merge + nearest_event_rate, andmerge + nearest_woe - synthetic credit-risk data without real or sensitive records
Narrative audit report
Section titled “Narrative audit report”This flow shows:
- a small synthetic dataset;
missing_policy="merge";missing_merge_criterion="nearest_event_rate";export_audit_report("audit_report.html");export_bundle("bundle")withaudit_report.htmlincluded by default;- generated file paths without opening a browser automatically.
PD vintage champion/challenger
Section titled “PD vintage champion/challenger”PD vintage benchmark
Section titled “PD vintage benchmark”Use this material when the main question is why a candidate with stronger aggregate IV can still be the wrong choice for credit when time enters the decision.
stable score demo
Section titled “stable score demo”Suggested reading order
Section titled “Suggested reading order”If you want to start with the API
Section titled “If you want to start with the API”- Synthetic notebook with Plotly
- Quickstart
- API overview
- Outputs and diagnostics
- Missing policy
- Narrative audit report
- PD vintage champion/challenger
- PD vintage benchmark
If you want to start with the methodology
Section titled “If you want to start with the methodology”- Why RiskBands
- Why not only OptimalBinning
- PD vintage benchmark
- How to read the charts