DGLError Traceback (most recent call last)
in ()
5 oh_cat_cols,
6 num_cols,
----> 7 cat_cols
8 )
9
~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/ginn/core.py in init(self, features, mask, num_mask, cat_mask, oh_cat_cols, numerical_columns, categorical_columns, embedding_dim, activation, dropout, percentile, distance_metric, weight_missing, graph, skip, glob_attr)
96
97 if graph:
—> 98 g.from_networkx(nxg)
99 if skip:
100 f = dgl.DGLGraph()
~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/dgl/heterograph.py in from_networkx(self, nx_graph, node_attrs, edge_attrs)
5503 which will return a new graph created from the networkx graph.
5504 “”"
-> 5505 raise DGLError(‘DGLGraph.from_networkx is deprecated. Please call the following\n\n’
5506 ‘\t dgl.from_networkx(nx_graph, node_attrs, edge_attrs)\n\n’
5507 ‘, which creates a new DGLGraph from the networkx graph.’)
DGLError: DGLGraph.from_networkx is deprecated. Please call the following
dgl.from_networkx(nx_graph, node_attrs, edge_attrs)
, which creates a new DGLGraph from the networkx graph.
Is there a solution?