Mlp, Time Series Forecasting, Data Science, Machine Learning, TensorFlow.
labels_col = 'sales(t+%d)' % lag_size labels = series[labels_col] series = series.drop(labels_col, axis=1) X_train, X_valid, Y_train, Y_valid = train_test_split(series, labels.values, test_size=0.4, random_state=0) print('Train set shape', X_train.shape) print('Validation set shape', X_valid.shape)