Answers for "what is grid.best_params_ do"

0

what is grid.best_params_ do

clf = GridSearchCV(estimator=RandomForestClassifier(), 
                    param_grid=parameter_candidates,
                    cv=5,
                    refit=True,
                    error_score=0,
                    n_jobs=-1)

clf.fit(training_set, training_classifications)
optimised_random_forest = clf.best_estimator_
return optimised_random_forest
Posted by: Guest on April-26-2021

Browse Popular Code Answers by Language