-
Notifications
You must be signed in to change notification settings - Fork 22
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
Code clean-up, increased modularity and more tests. #63
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to work with newer setuptools versions.
with test agains rdkit Tanomoto sims.
graphs and molecules to make dependencies a bit more modular.
adaptable, added tests.
to make it more modular and extendable. Added more unit tests.
Added type hints to data transform function.
to avoid having PyTorch Geometric as a dependency.
feaurisations/kernels.
graph kernels that allow node/ edge label checking.
grakel graph kernel.
inputs to allow usage of graphs with rdkit attributes.
graph kernel formulation.
to see if kernels work in eval mode.
Accidentally uploaded test notebook.
Ryan-Rhys
reviewed
Dec 3, 2023
@@ -55,11 +56,7 @@ def main( | |||
n_trials: Number of random train/test splits for the datasets. Default is 20 | |||
test_set_size: Size of the test set for evaluation. Default is 0.2 | |||
dataset_name: Benchmark dataset to use. One of ['Photoswitch', 'ESOL', 'FreeSolv', 'Lipophilicity'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, this makes things easier!
Ryan-Rhys
approved these changes
Dec 3, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing stuff! Looks great!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reference Issues/PRs
Fixes the following issues: #42 #61 #4 #62 #52
What does this implement/fix? Explain your changes
This PR fixes a range of issues and makes the code base more modular, adaptable and easier to use. In particular, this PR:
What testing did you do to verify the changes in this PR?
I added extensive unit tests for the changes I made, as well as existing parts of the code base, bringing the total number of unit tests to >200. The only breaking change that this PR introduces is a slight simplification of the data loader call when using the benchmark datasets which will need to be adjusted in the notebooks.
Pull Request Checklist
./CHANGELOG.md
file (if applicable)./gauche/tests/*
directories (if applicable)./notebooks/
(if applicable)python -m py.test tests/
and make sure that all unit tests pass (for small modifications, it might be sufficient to only run the specific test file, e.g.,python -m py.test tests/kernels/test_graph_kernels.py
)black .
andisort .