# examine the best model print(rand.best_score_) print(rand.best_params_) # Output 0.9800000000000001 {'weights': 'uniform', 'n_neighbors': 18}