I have the following pipeline build and what I want to do is obtain the random forest model object that gets built inside the pipeline. The rf
is the only initialization and it doesn't have rf.estimators_
grid_params = [{'bootstrap': [True],
'min_samples_leaf': [5],
'n_estimators': [1000],
'max_features': [8],
'min_samples_split': [12],
'max_depth': [60]}]
rf = RandomForestRegressor()
grid_search = GridSearchCV(estimator=rf, param_grid=grid_params)
pipe = PipelineRF(
[
('grid', grid_search)
]
)
_ = StratifiedKFold(random_state=125)
Is there a way get to call pipe.get_model()
?