Skmultilearn AttributeError:“ BinaryRelevance”对象没有属性“ model_count_”

时间:2019-01-07 19:09:05

标签: python scikit-multilearn

我从skmultilearn 0.1.0中选取了BinaryRelevance模型,现在,当我加载它并尝试运行该模型时,我遇到了问题。

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-11-e665f6845c56> in <module>()
----> 1 model.predict(input_df)

C:\Users\Jennifer.Doyle\AppData\Local\conda\conda\envs\my_root\lib\site-packages\skmultilearn\problem_transform\br.py in predict(self, X)
    180         predictions = [self._ensure_multi_label_from_single_class(
    181             self.classifiers_[label].predict(self._ensure_input_format(X)))
--> 182             for label in range(self.model_count_)]
    183 
    184         return hstack(predictions)

AttributeError: 'BinaryRelevance' object has no attribute 'model_count_'

0 个答案:

没有答案