Код: Выделить всё
knn = KNeighborsClassifier()
grid_search_knn = GridSearchCV(
estimator=knn,
n_jobs=-1
)
Код: Выделить всё
knn = KNeighborsClassifier(random_state=42)
grid_search_knn = GridSearchCV(
estimator=knn,
n_jobs=-1
)
Код: Выделить всё
knn = KNeighborsClassifier(random_state=42)
grid_search_knn = GridSearchCV(
estimator=knn,
random_state=42,
n_jobs=-1
)
Подробнее здесь: https://stackoverflow.com/questions/791 ... the-same-p
Мобильная версия