Skip to content

Instantly share code, notes, and snippets.

@SajidLhessani
Created October 8, 2021 03:25
Show Gist options
  • Save SajidLhessani/b3a038e0b64cd4c220c23312c9d5d873 to your computer and use it in GitHub Desktop.
Save SajidLhessani/b3a038e0b64cd4c220c23312c9d5d873 to your computer and use it in GitHub Desktop.
# Save the predicted values for the train data
df.iloc[:split, df.columns.get_loc('Pred_Signal')] = pd.Series(
cls.predict(ss1.transform(X.iloc[:split])).tolist())
# Save the predicted values for the test data
df.iloc[split:, df.columns.get_loc('Pred_Signal')] = y_predict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment