Created
January 15, 2022 15:01
-
-
Save bkaankuguoglu/efc1e51fefd5193b8e15772c396fc27c 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
X_forecast, y_forecast = feature_label_split(df_forecast, 'value') | |
scaler = get_scaler('minmax') | |
X_train_arr = scaler.fit_transform(X_train) | |
X_forecast_arr = scaler.transform(X_forecast) | |
y_train_arr = scaler.fit_transform(y_train) | |
y_forecast_arr = scaler.transform(y_forecast) | |
forecast_dataset = TensorDataset(torch.Tensor(X_forecast_arr), | |
torch.Tensor(y_forecast_arr)) | |
forecast_loader = DataLoader( | |
forecast_dataset, batch_size=1, shuffle=False, drop_last=True | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment