Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-classification with TwoStepMKL methods #23

Open
Yiren0325 opened this issue Feb 8, 2022 · 0 comments
Open

Multi-classification with TwoStepMKL methods #23

Yiren0325 opened this issue Feb 8, 2022 · 0 comments

Comments

@Yiren0325
Copy link

It seems that there are some bugs for multi-classification with TwoStepMKL methods.
Please see the error messages as follows:


AttributeError Traceback (most recent call last)
in ()
----> 1 mkl.fit(MKtr,ytr)

1 frames
/usr/local/lib/python3.7/dist-packages/MKLpy/algorithms/base.py in fit(self, KL, Y)
87 if self.multiclass_ : # a multiclass wrapper is used in case of multiclass target
88 metaClassifier = OneVsOneMKLClassifier if self.multiclass_strategy == 'ovo' else OneVsRestMKLClassifier
---> 89 self.clf = metaClassifier(self.class(**self.get_params())).fit(self.KL,self.Y)
90 self.solution = self.clf.solution
91 else :

/usr/local/lib/python3.7/dist-packages/MKLpy/multiclass.py in fit(self, KL, Y)
38 for task in self.tasks:
39 mkl = self.mkl.class(**self.mkl.get_params())
---> 40 mkl.learner = mkl.learner.class(**mkl.learner.get_params())
41 mkl.learner.kernel = 'precomputed'
42

AttributeError: 'NoneType' object has no attribute 'get_params'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant