Git Product home page Git Product logo

Comments (1)

ijpulidos avatar ijpulidos commented on August 9, 2024

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.

from experiments-binding-affinity.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.