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'
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'