Closed zuzannakarwowska closed 1 year ago
Since ALL the estimators in linear-tree are sklearn stimators, you can use GridSearchCV according to the standard sklearn syntax.
parameters = {'base_estimator__alpha':[1, 5, 10], 'n_estimators':[50, 100, 500, 700]}
model = GridSearchCV(LinearForestRegressor(Ridge()), parameters, n_jobs=-1)
model.fit(X,y)
If you support the project, don't forget to leave a star ;-)
Hi, I am wondering how to perform a GridsearchCV to find best parameters for the tree and regression model? For now I am able to tune the tree component of my model:
`
`