text_plain_output_1.png
from sklearn.neighbors import KNeighborsClassifier

clf_3 = KNeighborsClassifier()
param_grid = [{'weights': ['uniform'], 'n_neighbors': list(range(1, 21))}, {'weights': ['distance'], 'n_neighbors': list(range(1, 21))}]
print(param_grid)