Closed LishengSun closed 7 years ago
That is definitely a bug, it looks like no default is being set if you don't specify a classifier or regressor. I'll work on getting a fix for that.
To get around that for now, you could pass in what sort of space you want to search. For example, if you want to search through all types of supported classifiers, you could do:
from hpsklearn import HyperoptEstimator, any_classifier
estimator = HyperoptEstimator(classifier=any_classifier('my_clf'))
Or if you just want to search a specific classifier, such as K-Nearest Neighbors:
from hpsklearn import HyperoptEstimator, knn
estimator = HyperoptEstimator(classifier=knn('my_knn'))
Now that I think about it, there isn't a nice list anywhere of all of the classifiers/regressors/preprocessing options, so that should get added as well.
Thank you very much! That solved my problem!
Hello,
I am using hpsklearn for the first time. When doing the following basic things:
I got the AssertionError:
Can you tell me why? By the way I am using sklearn 0.18 with anaconda python 2.7.
Thank you in advance!