Пример кода: < /p>
Код: Выделить всё
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import RandomizedSearchCV
clf = RandomForestClassifier()
search = RandomizedSearchCV(clf, param_distributions=params, n_iter=10)
Подробнее здесь: https://stackoverflow.com/questions/796 ... edsearchcv