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

Revamped tuning #130

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from
Draft

Revamped tuning #130

wants to merge 27 commits into from

Conversation

GardevoirX
Copy link
Contributor

@GardevoirX GardevoirX commented Dec 17, 2024

This PR introduces two things:

Still more works need to be done, like writing documentations, fixing the pytests and the example, before this PR is ready.

Contributor (creator of pull-request) checklist

  • Tests updated (for new features and bugfixes)?
  • Documentation updated (for new features)?
  • Issue referenced (for PRs that solve an issue)?

Reviewer checklist

  • CHANGELOG updated with public API or any other important changes?

📚 Documentation preview 📚: https://torch-pme--130.org.readthedocs.build/en/130/

@GardevoirX GardevoirX linked an issue Dec 17, 2024 that may be closed by this pull request
Comment on lines 22 to 24
def grid_search(
method: str,
charges: torch.Tensor,
Copy link
Contributor

Choose a reason for hiding this comment

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

I would turn the logic around and keep the tune_XXX method. Also, grid_search is a very common name. It is not really clear from this that this will find the optimal parameters for the methods.

@@ -515,3 +518,82 @@ def forward(self, positions, cell, charges):
print(f"Evaluation time:\nPytorch: {time_python}ms\nJitted: {time_jit}ms")

# %%
# Other auto-differentiation ideas
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO opinion I wouldn't put this example here - even though I think it is good to have it. The tutorial is already 500 lines and with this super long. I rather vote for smaller examples tackling one specific tasks. Finding solutions is much easier if they are shorter. See also the beloved matplotlib examples.

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.

Grid-searching based tuning scheme
3 participants