Created
March 30, 2020 19:39
-
-
Save piEsposito/2a341c5c54a8b0f41f968d2c743e4582 to your computer and use it in GitHub Desktop.
in
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
regressor = BayesianRegressor(13, 1) | |
optimizer = optim.SGD(regressor.parameters(), lr=0.001) | |
criterion = torch.nn.MSELoss() | |
ds_train = torch.utils.data.TensorDataset(X_train, y_train) | |
dataloader_train = torch.utils.data.DataLoader(ds_train, batch_size=16, shuffle=True) | |
ds_test = torch.utils.data.TensorDataset(X_test, y_test) | |
dataloader_test = torch.utils.data.DataLoader(ds_test, batch_size=16, shuffle=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment