xiaoyeye / GCNG

using graph convolutional neural network and spaital transcriptomics data to infer cell-cell interactions
56 stars 16 forks source link

Compiling Model #2

Open linanzhang opened 4 years ago

linanzhang commented 4 years ago

Hi,

When I ran the sample code, I encountered the following error

Traceback (most recent call last): File "gcn_LR2_LR_as_nega_big.py", line 75, in model = Model(inputs=[X_in, A_in], outputs=output) File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/legacy/interfaces.py", line 91, in wrapper return func(*args, *kwargs) File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/engine/network.py", line 94, in init self._init_graph_network(args, **kwargs) File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/engine/network.py", line 241, in _init_graph_network self.inputs, self.outputs) File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/engine/network.py", line 1434, in _map_graph_network tensor_index=tensor_index) File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/engine/network.py", line 1421, in build_map node_index, tensor_index) File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/engine/network.py", line 1421, in build_map node_index, tensor_index) File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/engine/network.py", line 1421, in build_map node_index, tensor_index) File "/Users/zhangl18/opt/anaconda3/envs/tf/lib/python3.7/site-packages/keras/engine/network.py", line 1393, in build_map node = layer._inbound_nodes[node_index] AttributeError: 'NoneType' object has no attribute '_inbound_nodes'

It seems that GraphConv is not recognized as a keras layer. I'm wondering how you resolved this issue. Thank you.

xiaoyeye commented 4 years ago

plz used the old version of spektral as "spektral"github suggests.

wanglu2014 commented 3 years ago

plz used the old version of spektral as "spektral"github suggests.

Could you kindly specify which version of your scipy and spektral?