Home > other >  In the sklearn RandomizedSearchCV
In the sklearn RandomizedSearchCV

Time:11-02

Random_dt=RandomizedSearchCV (estimator=DecisionTreeClassifier (), param_distributions=parameters, CV=10, scoring='accuracy', n_iter=50, n_jobs=1)
Random_dt. Fit (X_train y_train)

Model parameter range is very large, with GridSearchCV will be very time consuming, thinking about using RandomizedSearchCV, but run error '& lt;='not supported between the instances of' STR 'and' int '
N_iter deleted of the parameter is not an error is this why

CodePudding user response:

GridSearchCV (estimator=GradientBoostingClassifier (), param_grid=parameters, CV=10, scoring='accuracy', n_jobs=1)
Use GridSearchCV can run normally, and RandomizedSearchCV than have sent a n_iter, no n_iter model score is very low, just thinking about get n_iter multipoint
  • Related