-
Notifications
You must be signed in to change notification settings - Fork 1
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
[WIP] Add PyG-based GAT implementation. #67
base: main
Are you sure you want to change the base?
Conversation
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.
Looks good but one more fundamental question. Have we validated the scientific correctness and performance of the new model? If we still need to run these kind of experiments I would suggest we keep them side-by-side as two different classes and then remove one?
In part this is motivated by the effort needed to make sure this works for upcoming ASAP ML deployments
add_self_loop=True, | ||
node_featurizer=CanonicalAtomFeaturizer(), | ||
)(smiles) | ||
mol = Chem.MolFromSmiles(smiles) |
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.
Need a convenience function to do this easily for user, easy to mess up.
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.
I've added one in asapdiscovery
for us to use, but since there's no one right way to featurize a molecule I didn't want to add anything opinionated in here
|
||
Default values here are the default values given in DGL-LifeSci. | ||
Class for constructing a GAT ML model. Default values here are based on the values | ||
in DGL-LifeSci. |
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.
DGL-LifeSci gone now?
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.
the defaults are still based on the defaults in that package, even though we're not using their code anymore
) | ||
|
||
return {"g": g, "smiles": smiles} | ||
mol = Chem.MolFromSmiles(smiles) |
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.
Same here on convenience func
yep that's a good point. I'll add the DGL version back in alongside the PyG version for now |
Switch from using the DGL implementation of GAT to the PyG version. Note that this will break things as the expected input type will change. Closes #59.