Open gh-owestesson opened 7 years ago
It seems like
self.plattlr.predict_proba
Is called (line 63, within self.predict_proba) before self.plattlr is set on line 78.
This causes models like a generic SVC to fail:
AttributeError: 'SelfLearningModel' object has no attribute 'plattlr'
if you use SVC, you only have to do is use probability=True as an argument, like SVC(..., probability=True). see this document: http://scikit-learn.org/stable/modules/generated/sklearn.svm.SVC.html
probability=True
SVC(..., probability=True)
It seems like
self.plattlr.predict_proba
Is called (line 63, within self.predict_proba) before self.plattlr is set on line 78.
This causes models like a generic SVC to fail:
AttributeError: 'SelfLearningModel' object has no attribute 'plattlr'