Skip to content

Instantly share code, notes, and snippets.

@charlieoneill11
Last active October 23, 2022 13:08
Show Gist options
  • Save charlieoneill11/18afb2790f9aa3cfc81eeb5b060adb7e to your computer and use it in GitHub Desktop.
Save charlieoneill11/18afb2790f9aa3cfc81eeb5b060adb7e to your computer and use it in GitHub Desktop.
optimiser = optim.SGD(seq_model.parameters(), lr=1e-3)
training_loop(
n_epochs = 500000,
optimiser = optimiser,
model = seq_model,
loss_fn = nn.MSELoss(),
X_train = X_train,
X_val = X_val,
y_train = y_train,
y_val = y_val)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment