September 2019
Intermediate to advanced
420 pages
10h 29m
English
Alternatively, you can write your own classifier using the scikit-learn library.
You can do this by importing BaseEstimator and ClassifierMixin. The latter will provide a corresponding score method, which works for all classifiers:
In [1]: import numpy as np... from sklearn.base import BaseEstimator, ClassifierMixin
In [2]: class MyClassifier(BaseEstimator, ClassifierMixin):... """An example classifier"""
Read now
Unlock full access