Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored Classifier to an sklearn estimator #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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