ProgLearn icon indicating copy to clipboard operation
ProgLearn copied to clipboard

Raise warning when self.classes is an empty list for voters.

Open hhelm10 opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe. When manually using voters I did not realize I had to give the set of classes and that otherwise is was using an empty list.

Describe the solution you'd like Raise a warning when self.classes is empty and you try to make a prediction.

hhelm10 avatar Dec 16 '20 15:12 hhelm10

@hhelm10 did you use LifelongClassification{Forest, Network} or the raw progressive learner class?

levinwil avatar Dec 16 '20 15:12 levinwil

This was when using a TreeTransformer / TreeVoter directly. Probably an edge case, but adding a warning is pretty harmless.

hhelm10 avatar Dec 16 '20 15:12 hhelm10

Gotcha. I just wanted to make sure it didn't show up when using LifelongClassification{Forest, Network}

levinwil avatar Dec 16 '20 16:12 levinwil