I am trying to make prediction using random forest regression and then utilize GridSearchCV to tune hyperparameters(just 'n_estimators'). However results of GridSearchCV are worse than base model. Despite GridSearchCV parameter grid has same values with base model the results of GridSearchCV model is still worse. So, why is the RMSE of the GridSearchCV model worse than base model?
Here are models that I used:
Base Model:
rfr_rd_fi = RandomForestRegressor(n_estimators = 100,
max_features=7,
random_state = 3115)
Root Mean Squared Error for base model is 200.2
GridSearchCV model:
param_grid = {'n_estimators' : np.arange(10,1010,10, dtype=int),
'max_features' : [7],
'random_state' : [3115]}
cv_test= KFold(n_splits=10)
rfr_gs = GridSearchCV(RandomForestRegressor(),
param_grid=param_grid,
scoring='neg_mean_squared_error',
cv=cv_test, verbose=4, n_jobs=-1).fit(X_train, y_train)
Root Mean Squared Error for GridSearchCV model is 257.2