Skip to content

Commit 133ddc8

Browse files
authored
Update model_training.py
1 parent 8de2b0a commit 133ddc8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/model_training.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_models():
2828
precision_score,
2929
recall_score,
3030
f1_score,
31-
roc_auc_score # ✅ optional: better for classification
31+
roc_auc_score
3232
)
3333

3434
def train_and_evaluate_models(models, X_train, X_test, y_train, y_test):
@@ -51,10 +51,9 @@ def train_and_evaluate_models(models, X_train, X_test, y_train, y_test):
5151
'Precision': precision_score(y_test, y_pred, zero_division=0),
5252
'Recall': recall_score(y_test, y_pred, zero_division=0),
5353
'F1 Score': f1_score(y_test, y_pred, zero_division=0),
54-
'ROC AUC': roc_auc # ✅ add this instead of R2
54+
'ROC AUC': roc_auc
5555
}
5656

5757
predictions[name] = (y_test, y_pred)
5858

5959
return results, predictions
60-

0 commit comments

Comments
 (0)