'Tuning SVR hyperparameters jupyter notebook frozen
I tried to use GridSearchCV to tune SVR hyperparameters, but code block frozen and can not stop.
from sklearn.model_selection import GridSearchCV
param_grid = {'C': [0.1,1, 10, 100], 'gamma': [10,1,0.1,0.01,0.001,0.0001],'kernel': ['rbf', 'poly', 'sigmoid']}
grid = GridSearchCV(regr_SVR,param_grid,refit=True,verbose=3)
grid.fit(X_train,y_train)
print(grid.best_estimator_)
print(grid.best_params_)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

