Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created January 11, 2023 09:53
Show Gist options
  • Save quantra-go-algo/99cdd4d897008c517f218ef3638dc30a to your computer and use it in GitHub Desktop.
Save quantra-go-algo/99cdd4d897008c517f218ef3638dc30a to your computer and use it in GitHub Desktop.
#To obtain the training and testing accuracy
print('Training accuracy: {0:0.2f}'.format(model.score(x_train,y_train)))
print('Testing accuracy: {0:0.2f}'.format(model.score(x_test,y_test)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment