Created
March 8, 2020 05:27
-
-
Save Paulooh007/007b23b9a28af4b1431f806e87639222 to your computer and use it in GitHub Desktop.
algo loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# evaluate each model in turn | |
results = [] | |
names = [] | |
for name, model in models: | |
model.fit(X_train, y_train) | |
score = roc_auc_score(y_test, model.predict_proba(X_test)[:,1]) | |
results.append(score) | |
names.append(name) | |
msg = "%s: %f " % (name, score) | |
print(msg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment