apexherbert200's picture
Initial clean commit (no runtime data)
a2dbe57
{
"best_model": "RandomForest",
"best_score": 0.8028596687687864,
"test_auc": 0.3958232151529869,
"test_pr_auc": 0.2728098646769918,
"optimal_threshold": 0.1,
"class_ratio": 2.4482758620689653,
"model_scores": {
"LogisticRegression": 0.6318154849610027,
"RandomForest": 0.8028596687687864,
"GradientBoosting": 0.7846953890886231
},
"classification_report": {
"0": {
"precision": 0.3333333333333333,
"recall": 0.014084507042253521,
"f1-score": 0.02702702702702703,
"support": 71.0
},
"1": {
"precision": 0.27835051546391754,
"recall": 0.9310344827586207,
"f1-score": 0.42857142857142855,
"support": 29.0
},
"accuracy": 0.28,
"macro avg": {
"precision": 0.30584192439862545,
"recall": 0.4725594949004371,
"f1-score": 0.2277992277992278,
"support": 100.0
},
"weighted avg": {
"precision": 0.3173883161512027,
"recall": 0.28,
"f1-score": 0.14347490347490346,
"support": 100.0
}
},
"confusion_matrix": [
[
1,
70
],
[
2,
27
]
],
"feature_importances": {
"age": 0.1725847290852057,
"income": 0.20968988817383458,
"loan_amount": 0.1800352766165808,
"credit_score": 0.15648808017866014,
"debt_ratio": 0.17997135219683005,
"income_missing": 0.051714296509862666,
"credit_score_missing": 0.028362086395912346,
"employment_status_missing": 0.02115429084311374,
"employment_status_nan": 0.0,
"education_nan": 0.0,
"home_ownership_nan": 0.0
},
"cleaning_report": {
"original_shape": [
500,
12
],
"steps_applied": [
"drop_id_columns",
"replace_invalid_values",
"flag_missing",
"handle_outliers",
"validate_labels"
],
"warnings": [
"Unexpected negative values in: ['income', 'loan_amount']"
],
"id_columns_dropped": [
"id",
"customer_id",
"loan_id"
],
"invalid_values_replaced": "12",
"missing_flags_created": [
"income_missing",
"credit_score_missing",
"employment_status_missing"
],
"outliers_capped": "3",
"negative_value_issues": {
"income": "2",
"loan_amount": "7"
},
"label_validation": {
"n_classes": 2,
"unique_values": [
"0.0",
"1.0"
],
"label_mapping": {
"0.0": 0,
"1.0": 1
},
"status": "standardized to 0/1"
},
"remaining_missing": {
"income": 63,
"credit_score": 44,
"employment_status": 51,
"education": 6,
"home_ownership": 6
},
"final_shape": [
500,
12
],
"rows_removed": 0,
"columns_removed": 0
},
"balancing_report": {
"method": "smote",
"original_counts": {
"0": 284,
"1": 116
},
"final_counts": {
"1": 284,
"0": 284
},
"original_imbalance_ratio": 2.4482758620689653,
"samples_before": 400,
"samples_after": 568
},
"calibrated": false
}