mlgig / mrsqm

GNU General Public License v3.0
28 stars 8 forks source link

Error when using sklearn crossvalidation #17

Closed lnthach closed 8 months ago

lnthach commented 11 months ago

Code:

clf = mrsqm.MrSQMClassifier(nsax=0,nsfa=5, random_state=0) scores = cross_validate(clf, X_train, y_train, scoring=['accuracy'], cv=3)

Error:

TypeError: Cannot clone object '<mrsqm.mrsqm_wrapper.MrSQMClassifier object at 0x7fc806dc8ac0>' (type <class 'mrsqm.mrsqm_wrapper.MrSQMClassifier'>): it does not seem to be a scikit-learn estimator as it does not implement a 'get_params' method.

lnthach commented 8 months ago

Fixed @heerme