Skip to content

Commit

Permalink
Updated finding max AUC of classifier ensembles
Browse files Browse the repository at this point in the history
  • Loading branch information
varunlakshmanan authored Jun 8, 2020
1 parent 8c9ee8c commit 9dcd156
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ensemble_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ def ensemble_models(optimized_estimators, x_train, y_train, x_test, y_test, is_c
voting_estimator.fit(x_train, y_train)
y_predictions = voting_estimator.predict(x_test)
auc = roc_auc_score(y_test, y_predictions)

if auc > max_auc:
best_voting_estimator = voting_estimator
max_auc = auc

print("Highest AUC: " + str(max_auc))
return best_voting_estimator

else:
Expand Down

0 comments on commit 9dcd156

Please sign in to comment.