danielegrattarola / spektral

Graph Neural Networks with Keras and Tensorflow 2.
https://graphneural.network
MIT License
2.37k stars 334 forks source link

Name Importerror: 'EdgeConditionedConv' and 'batch_iterator' #410

Open Akshay1010567 opened 1 year ago

Akshay1010567 commented 1 year ago

ImportError: cannot import name 'EdgeConditionedConv' from 'spektral.layers' (/usr/local/lib/python3.8/dist-packages/spektral/layers/init.py)

ImportError: cannot import name 'batch_iterator' from 'spektral.utils' (/usr/local/lib/python3.8/dist-packages/spektral/utils/init.py)

I could not solve this two Importerror. I install spektral successfully with all its packages. But on my local machine as well as google colab has not this two 'EdgeConditionedConv' and 'batch_iterator' name. Please help me to find out the solution.

danielegrattarola commented 1 year ago

Sorry for the late reply but for some reason I stopped receiving notifications.

You're probably using code that relies on an old version of Spektral. The correct name for ECC layers in ECCCOnv (https://graphneural.network/layers/convolution/#eccconv) and batch_iterator does not exist anymore (we've moved to using Loaders (https://graphneural.network/loaders/).