Skip to content

Instantly share code, notes, and snippets.

@Joelfranklin96
Created December 13, 2019 20:02
Show Gist options
  • Save Joelfranklin96/20aff2a3ecae32419f40f82a073708d1 to your computer and use it in GitHub Desktop.
Save Joelfranklin96/20aff2a3ecae32419f40f82a073708d1 to your computer and use it in GitHub Desktop.
Display_cv_score
# Creating a list of model names
model_names = ['K Nearest Neighbors','Neural Net','Decision Tree','Random Forest','AdaBoost','Naive Bayes','SVM Linear','SVM rbf','SVM Sigmoid']
# Cross validation scores of the models
for i in range(len(models)):
print('The cross validation score of {} is {}'.format(model_names[i],cv_result[i]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment