Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Tathagatd96/c20f200ab55e71bb2b8ef8c55dc20af2 to your computer and use it in GitHub Desktop.
Save Tathagatd96/c20f200ab55e71bb2b8ef8c55dc20af2 to your computer and use it in GitHub Desktop.
scaler_model = MinMaxScaler()
scaler_model.fit(X_train)
X_train=pd.DataFrame(scaler_model.transform(X_train),columns=X_train.columns,index=X_train.index)
scaler_model.fit(X_eval)
X_eval=pd.DataFrame(scaler_model.transform(X_eval),columns=X_eval.columns,index=X_eval.index)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment