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

Graph Convolutional Neural Network #9

Open
1 of 2 tasks
t-kimber opened this issue May 20, 2021 · 1 comment
Open
1 of 2 tasks

Graph Convolutional Neural Network #9

t-kimber opened this issue May 20, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@t-kimber
Copy link
Contributor

t-kimber commented May 20, 2021

Ligand-based model

Graph

Featurization:

  • Running

Model:

  • Running
@t-kimber t-kimber self-assigned this May 20, 2021
@t-kimber t-kimber mentioned this issue Aug 20, 2021
8 tasks
@t-kimber t-kimber added the bug Something isn't working label Aug 20, 2021
@ijpulidos
Copy link

I believe this is the place to report updates with issues in the experiments/001_example-ligand-only-graph-subset.py, please correct me if I'm wrong and I can raise a new issue if needed.

When trying to build and run the mode I'm facing the current issue:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[10], line 8
      6     a_dataloader = dataloaders[next(iter(dataloaders.keys()))]["train"]
      7     x_sample, _ = next(iter(a_dataloader))
----> 8     MODEL_KWARGS["input_shape"] = ModelCls.estimate_input_shape(x_sample)
     10 nn_model = ModelCls(**MODEL_KWARGS)
     12 optimizer = import_object(OPTIMIZER)(nn_model.parameters(), **OPTIMIZER_KWARGS)

File ~/workdir/repos/kinoml/kinoml/ml/torch_geometric_models.py:34, in GraphConvolutionNeuralNetwork.estimate_input_shape(input_sample)
     31 @staticmethod
     32 def estimate_input_shape(input_sample):
     33     # Take the first batch [0]
---> 34     return input_sample[0].num_node_features

AttributeError: 'Tensor' object has no attribute 'num_node_features'

Which seems to suggest that it's expecting a torch.geometric.Data object instead of a Tensor one.

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

No branches or pull requests

2 participants