Skip to content

Examples

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 standard and stable

This flow shows score_table(), audit_table(), JSON/bundle export, and public plots for temporal reading.

Use these scripts when the main question is how to handle missing values in an auditable way without opaque imputation.

They show:

  • missing_policy="standard"
  • missing_policy="separate_bin"
  • missing_policy="forbid"
  • missing_policy="merge" with nearest_event_rate
  • missing_policy="merge" with nearest_woe
  • missing_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, and merge + nearest_woe
  • synthetic credit-risk data without real or sensitive records

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") with audit_report.html included by default;
  • generated file paths without opening a browser automatically.

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.

  1. Synthetic notebook with Plotly
  2. Quickstart
  3. API overview
  4. Outputs and diagnostics
  5. Missing policy
  6. Narrative audit report
  7. PD vintage champion/challenger
  8. PD vintage benchmark
  1. Why RiskBands
  2. Why not only OptimalBinning
  3. PD vintage benchmark
  4. How to read the charts