Skip to content

Instantly share code, notes, and snippets.

@IvanNardini

IvanNardini/trasformer.py

Last active Jul 25, 2020
Embed
What would you like to do?
Back to the Machine Learning fundamentals: How to write code for Model deployment (Part 3/3)
from sklearn.base import BaseEstimator, TransformerMixin
class Transformer(BaseEstimator, TransformerMixin):
def fit(self, X, y=None):
return self
def transform(self, X):
return X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.