I\'m using the MinMaxScaler model in sklearn to normalize the features of a model.
training_set = np.random.rand(4,4)*10
training_set
[[
Even better than pickle (which creates much larger files than this method), you can use sklearn's built-in tool:
from sklearn.externals import joblib
scaler_filename = "scaler.save"
joblib.dump(scaler, scaler_filename)
# And now to load...
scaler = joblib.load(scaler_filename)
Note: sklearn.externals.joblib is deprecated. Install and use the pure joblib instead