Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loss #8

Merged
merged 44 commits into from
Mar 20, 2024
Merged

Loss #8

merged 44 commits into from
Mar 20, 2024

Conversation

rousseab
Copy link
Collaborator

In this PR:

  • implementation of lightning module
  • loss computation in lightning module
  • creation of noisy positions
  • clean up of how "noise" is generated.
  • some misc clean ups / improvements in the tests.

I also fixed a bug where I was sometimes computing $\sigma^2 S$, and sometimes computing $\sigma S$, but calling it the same thing.

Finally, I implement a "sanity check" experiment where I try to overfit a small dataset of random positions with a MLP score network. Despite fiddling around with parameters, you can see below that this model doesn't learn anything.

Screenshot 2024-03-18 at 4 42 28 PM

This is suspicious and will require further exploration. I don't know why this is happening, but my best guesses are
1- the data in fact keeps changing because we are sampling noise randomly: the model doesn't see the same batch over and over
2- an MLP is really crappy.

"""
match hyper_params.name:
case ValidOptimizerNames.adam:
optimizer = optim.Adam(model.parameters(), lr=hyper_params.learning_rate)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

depending on the regime, we might have to change the eps variable in adam. It might be premature to add it at this stage, it is easy enough to do later. Just something to keep in mind.

@rousseab rousseab merged commit 1772cb5 into main Mar 20, 2024
1 check passed
@rousseab rousseab deleted the loss branch March 20, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants