score_borrower
Estimate a loan applicant's probability of default from annual income and loan amount, returning a risk tier and decision flag. Optional fields default to population medians.
Instructions
Estimate a loan applicant's probability of default.
Use this to get a single risk number for one borrower. Describe the applicant in plain terms — only annual income and loan amount are required; every other field falls back to the population median when omitted.
Returns a dict with:
default_probability: estimated probability of default (0-1)
risk_tier: "low" / "moderate" / "elevated" / "high"
flag_default: True if the probability is at or above the 0.15 decision threshold (this model is tuned for recall, not a 50% cutoff)
threshold_used: the decision threshold (0.15)
fields_defaulted: which optional fields fell back to medians
Educational model trained on a Kaggle dataset — not real lending advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||