Skip to content

Instantly share code, notes, and snippets.

@piEsposito
Created March 30, 2020 19:39
Show Gist options
  • Save piEsposito/2a341c5c54a8b0f41f968d2c743e4582 to your computer and use it in GitHub Desktop.
Save piEsposito/2a341c5c54a8b0f41f968d2c743e4582 to your computer and use it in GitHub Desktop.
in
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