I'm trying to speed up the process of GridSearchCV (for tuning the parameters of the RBF-function) in Python. This, however, takes forever. I have a moderately small dataset (dimensions 600 x 8), so I don't think dimensionality is a problem.
I've heard of BaggingRegressors in this post: Making SVM run faster in python, but I can't seem to make it work for regression with GridSearchCV.
The following piece of Code works, but takes a really long time to compute.
parameters = {'epsilon': np.arange(0.1, 1.0, 0.01) ,'C': 2.0 **
np.arange(-2, 9), 'gamma': np.arange(0.1, 1.0, 0.01)}
svc = SVR(kernel='rbf')
clf = GridSearchCV(svc, parameters)
clf.fit(X_train, y_train)
So, I tried to speed it up like this:
parameters = {'epsilon': np.arange(0.1, 1.0, 0.01) ,'C': 2.0 **
np.arange(-2, 9), 'gamma': np.arange(0.1, 1.0, 0.01)}
svc = SVR(kernel='rbf')
clf = GridSearchCV(svc, parameters)
clf = BaggingRegressor(clf)
clf.fit(X_train, y_train)
But this doesn't speed up the proces at all.
I'm afraid I don't fully understand how BaggingRegressor works, so if anybody has some insights, please let me know!