base class for classifiers

We use this base class for implementing our classifiers. The advantage is that we can use our code with sklearn modules to use features such as pipeline.