Scikit-learn's fit transform paradigm is probably not for you

If you’ve ever used code from scikit-learn , you will have seen the following pattern: import numpy as np from sklearn.preprocessing import StandardScaler X = np . random . randn (( 100 , 32 )) scaler = StandardScaler () scaler . fit ( X ) X_transformed = scaler . transform ( X ) # Or equivalently X_transformed = scaler . fit_transform ( X ) For all scikit-learn transformers ( 1 ), the fit call…