class template for transformer

We use this base class to a implement our classifiers. The benefit is that this adapts to sklearn protocols, so we can use our code with their pipeline.