Skip to content

Instantly share code, notes, and snippets.

@vilsonrodrigues
Last active February 20, 2020 18:35
Show Gist options
  • Save vilsonrodrigues/5fae69e0e803bbb43974416b1e8e697f to your computer and use it in GitHub Desktop.
Save vilsonrodrigues/5fae69e0e803bbb43974416b1e8e697f to your computer and use it in GitHub Desktop.
kfolds = 5
scores = cross_val_score(modelo, x, Y, cv = kfolds, scoring = "accuracy")
print("Resultado dos k testes", scores)
print("Média dos testes", scores.mean())
print("Desvio Padrão dos testes", scores.std())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment