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

Ligand graph fix #39

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Ligand graph fix #39

wants to merge 6 commits into from

Conversation

t-kimber
Copy link
Contributor

@t-kimber t-kimber commented Sep 2, 2021

Fix issue #9 .

Error:

RuntimeError: stack expects each tensor to be equal size, but got [2, 56] at entry 0 and [2, 50] at entry 1

These shapes correspond to the COO format of the adjacency matrix in pytorch geometric (see graph data documentation).

How to reproduce the bug

First, featurize the compounds using

bash tests/features/test_featurization_ligand_only.sh

This command line will create parquet files which contain the featurized compounds.

Second, train the Graph Neural Network (which fails):

bash tests/experiments/test_model_ligand_only.sh

Notes on Jaime's implementation:

    if COLLATE_FN:
        # IMPORTANT: This will be needed if your X tensors have different shapes across systems!
        # COLLATE_FN can be an import string, or a eval-able lambda
        # Read https://pytorch.org/docs/stable/data.html#dataloader-collate-fn
        try:
            collate_fn = import_object(COLLATE_FN)
        except ImportError:
            collate_fn = eval(COLLATE_FN)

General Notes:

@t-kimber t-kimber removed the request for review from jchodera September 2, 2021 12:23
@t-kimber t-kimber self-assigned this Sep 10, 2021
@t-kimber t-kimber added the bug Something isn't working label Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant