Views
No views yet
| Property | Value |
|---|---|
| Classifier | GradientBoostingClassifier |
| Pipeline steps | preprocessor -> classifier |
| Training samples | 8,000 |
| Test samples | 2,000 |
| Target column | target |
| Created | 2026-06-16T15:37:09.866740+00:00 |
| Metric | Score |
|---|---|
| Accuracy | 0.8980 |
| Precision | 0.7823 |
| Recall | 0.6216 |
| F1 | 0.6928 |
| ROC AUC | 0.8918 |



age, annual_income, employment_years, loan_amount, credit_score, num_late_payments, debt_to_income_ratio, num_open_accounts, months_since_last_delinquencyeducation_level, employment_type, province1import joblib
2from huggingface_hub import hf_hub_download
3import pandas as pd
4
5# Download and load the model
6model_path = hf_hub_download(
7 repo_id="ThabangTheActuaryCoder/banking-credit-scoring-model",
8 filename="credit_scoring_model.joblib",
9)
10model = joblib.load(model_path)
11
12# Create a sample input
13sample = pd.DataFrame([{"age": 0, "annual_income": 0, "employment_years": 0, "loan_amount": 0, "credit_score": 0, "num_late_payments": 0, "debt_to_income_ratio": 0, "num_open_accounts": 0, "months_since_last_delinquency": 0, "education_level": 0, "employment_type": 0, "province": 0}])
14
15# Predict
16prediction = model.predict(sample)
17probabilities = model.predict_proba(sample)
18print(f"Prediction: {prediction}, Probabilities: {probabilities}")