You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
---------------------------------------------------------------------------AttributeErrorTraceback (mostrecentcalllast)
CellIn[10], line86a_dataloader=dataloaders[next(iter(dataloaders.keys()))]["train"]
7x_sample, _=next(iter(a_dataloader))
---->8MODEL_KWARGS["input_shape"] =ModelCls.estimate_input_shape(x_sample)
10nn_model=ModelCls(**MODEL_KWARGS)
12optimizer=import_object(OPTIMIZER)(nn_model.parameters(), **OPTIMIZER_KWARGS)
File~/workdir/repos/kinoml/kinoml/ml/torch_geometric_models.py:34, inGraphConvolutionNeuralNetwork.estimate_input_shape(input_sample)
31 @staticmethod32defestimate_input_shape(input_sample):
33# Take the first batch [0]--->34returninput_sample[0].num_node_featuresAttributeError: 'Tensor'objecthasnoattribute'num_node_features'
Which seems to suggest that it's expecting a torch.geometric.Data object instead of a Tensor one.
Ligand-based model
Graph
Featurization:
Model:
The text was updated successfully, but these errors were encountered: