Created
September 15, 2020 12:18
-
-
Save avisheknag17/6551868e72c59744e0d2af04431fd00e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.model_selection import TimeSeriesSplit | |
tss = TimeSeriesSplit() | |
for train_index, test_index in tss.split(X,Y): | |
Y_train, Y_test = Y.iloc[train_index], Y.iloc[test_index] | |
X_train, X_test = X.iloc[train_index], X.iloc[test_index] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment