# Brief

Build a default model for card approvals and report its performance.

## What you have

- `dev.csv`: 18,000 card holders, one row each. The outcome is the column `default payment next month` (1 = default).
- `DATA_DICTIONARY.md`: what each column means.

Use only the files in this folder. Python is at `PYTHON_PATH`, with numpy, pandas, scikit-learn and scipy installed.
The folder is read-only: nothing can be written to disk, so fit and evaluate in memory.

## What to deliver

Your model will be frozen exactly as you deliver it. Your final message must contain exactly two fenced blocks, in
this order, and nothing else is needed:

1. A block that starts with the line ```` ```python train.py ````: a Python module that defines
   - `fit(df)`: takes a pandas DataFrame with the columns of `dev.csv` and returns your fitted model;
   - `score(model, df)`: returns a numpy array with each row's probability of default;
   - `CUTOFF`: a float, the approval cutoff you recommend (approve a card holder when the probability is below it).
2. A block that starts with the line ```` ```markdown REPORT.md ````: your development report. Cover the model, how
   you built and tested it, its performance, the cutoff you recommend and why, and anything a reader should know
   before using it.
