Random Forest with GridSearchCV - Error on param_grid
问题 Im trying to create a Random Forest model with GridSearchCV but am getting an error pertaining to param_grid: "ValueError: Invalid parameter max_features for estimator Pipeline. Check the list of available parameters with `estimator.get_params().keys()" . I'm classifying documents so I am also pushing tf-idf vectorizer to the pipeline. Here is the code: from sklearn import metrics from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import classification_report, f1_score,