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

Implement ViSNet #41

Merged
merged 43 commits into from
Feb 13, 2024
Merged

Implement ViSNet #41

merged 43 commits into from
Feb 13, 2024

Conversation

fyng
Copy link
Contributor

@fyng fyng commented Jan 26, 2024

Description

Implement VisNet from pytorch geometric

Fixes #40

TODO

  • import PyG-nightly from pip
  • try importing ViSNet, add flag for successful import
  • implement tests for VisNet

Status

  • Ready to go

@fyng fyng requested review from kaminow and hmacdope January 26, 2024 20:42
@fyng fyng self-assigned this Jan 26, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jan 26, 2024

Codecov Report

Merging #41 (3924d3f) into main (3cae786) will increase coverage by 1.22%.
Report is 22 commits behind head on main.
The diff coverage is 83.70%.

Additional details and impacted files

@hmacdope
Copy link
Contributor

@fyng ping myself and @kaminow when you want review 😄

@fyng
Copy link
Contributor Author

fyng commented Jan 29, 2024

@hmacdope @kaminow ready for review!

Copy link
Contributor

@hmacdope hmacdope left a comment

Choose a reason for hiding this comment

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

You also need to add a CI runner that uses nightly and one that doesn't, I or Ben can show you how to do that.

devtools/conda-envs/test_env.yaml Outdated Show resolved Hide resolved
mtenn/conversion_utils/visnet.py Outdated Show resolved Hide resolved
mtenn/tests/test_model_config.py Show resolved Hide resolved
.github/workflows/CI.yaml Outdated Show resolved Hide resolved
mtenn/config.py Outdated Show resolved Hide resolved
mtenn/conversion_utils/visnet.py Outdated Show resolved Hide resolved
mtenn/conversion_utils/visnet.py Outdated Show resolved Hide resolved
@kaminow
Copy link
Collaborator

kaminow commented Feb 5, 2024

@fyng is this ready for another review?

Copy link
Collaborator

@kaminow kaminow left a comment

Choose a reason for hiding this comment

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

one more quick change but then I think we're good to go!

mtenn/tests/test_model_config.py Outdated Show resolved Hide resolved
@fyng fyng requested a review from kaminow February 5, 2024 21:30
Copy link
Collaborator

@kaminow kaminow left a comment

Choose a reason for hiding this comment

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

I think the test is actually not at all doing what we think it should be (see comments). should've caught this earlier, sorry

mtenn/tests/test_model_config.py Outdated Show resolved Hide resolved
mtenn/tests/test_model_config.py Outdated Show resolved Hide resolved
mtenn/tests/test_model_config.py Outdated Show resolved Hide resolved
@fyng fyng requested a review from kaminow February 7, 2024 19:17
Copy link
Collaborator

@kaminow kaminow left a comment

Choose a reason for hiding this comment

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

two more super quick things but the new test looks good!

}

pyg_model = PyVisNet(**kwargs)
visnet_model = ViSNet(pyg_model)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
visnet_model = ViSNet(pyg_model)
visnet_model = ViSNet(model=pyg_model)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great catch @kaminow, thanks! I almost snuck in a bug 🤧

mtenn/tests/test_model_config.py Outdated Show resolved Hide resolved
@fyng fyng requested a review from kaminow February 9, 2024 20:18
Copy link
Collaborator

@kaminow kaminow left a comment

Choose a reason for hiding this comment

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

code looks good! just a couple small docstring changes and then we should be good to go

mtenn/conversion_utils/visnet.py Outdated Show resolved Hide resolved
mtenn/conversion_utils/visnet.py Outdated Show resolved Hide resolved
mtenn/conversion_utils/visnet.py Outdated Show resolved Hide resolved
mtenn/conversion_utils/visnet.py Outdated Show resolved Hide resolved
@fyng fyng requested a review from kaminow February 13, 2024 15:26
Copy link
Collaborator

@kaminow kaminow left a comment

Choose a reason for hiding this comment

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

looks good, I think we're finally there!

@kaminow kaminow merged commit 3b08d3e into main Feb 13, 2024
8 of 9 checks passed
@kaminow kaminow deleted the add-conversion-utils branch February 13, 2024 20:00
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.

Implement ViSNet from pytorch geometric
4 participants