Skip to content

Instantly share code, notes, and snippets.

@Paulooh007
Created March 8, 2020 05:27
Show Gist options
  • Save Paulooh007/007b23b9a28af4b1431f806e87639222 to your computer and use it in GitHub Desktop.
Save Paulooh007/007b23b9a28af4b1431f806e87639222 to your computer and use it in GitHub Desktop.
algo loop
# 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