Skip to content

Conversation

@OmriKaduri
Copy link

Hey,

I've wanted to use your classifier for a multiclass problem. The easiest way I've thought about is using sklearn OneVsRestClassifier and refactoring your Classifier to be an sklearn estimator (by using inheritance from BaseEstimator and ClassifierMixin). Also, I've added predict_proba function.

So I've thought it would be nice to open a PR for anyone want to use this classifier for multiclass problems 😃

In order to be able to use sklearn `OneVsRestClassifier` (for
multi-class tasks which are not currently supported by this repository),
i've changed the `Classifier` class to be an sklearn estimator (by using
inheritance from `BaseEstimator` and `ClassifierMixin`).

Also, I've added `predict_proba` function.
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

Successfully merging this pull request may close these issues.

1 participant