Open ghezalahmad opened 2 years ago
Hi,
You are probably using a newer version of DGL. In fact, the function you are calling is deprecated. Try using an older version. Alternatively, you can find the newer version of that function.
All the best,
Indro
On Thu, 9 Dec 2021, 12:54 Ghezal Ahmad Zia, @.***> wrote:
GINN is running on cpu
DGLError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_16964/379948764.py in ----> 1 imputer = GINN(oh_x_tr, 2 oh_mask_tr, 3 oh_num_mask_tr, 4 oh_cat_mask_tr, 5 oh_cat_cols,
~\Miniconda3\lib\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()
~\Miniconda3\lib\site-packages\dgl\heterograph.py in from_networkx(self, nx_graph, node_attrs, edge_attrs) 5690 which will return a new graph created from the networkx graph. 5691 """ -> 5692 raise DGLError('DGLGraph.from_networkx is deprecated. Please call the following\n\n' 5693 '\t dgl.from_networkx(nx_graph, node_attrs, edge_attrs)\n\n' 5694 ', 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.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/spindro/GINN/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSVXGIYFSTTMHCWYIBO6W3UQCKIHANCNFSM5JWIW7DA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Which version of DGL is used in this app? or how to downgrade it? Can you please give some information in detail?
Hi @spindro, I 've got the same issue. Can you provide the version of DGL so I can install your package correctly?
@ghezalahmad sir did you find the solution?
GINN is running on cpu
DGLError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_16964/379948764.py in
----> 1 imputer = GINN(oh_x_tr,
2 oh_mask_tr,
3 oh_num_mask_tr,
4 oh_cat_mask_tr,
5 oh_cat_cols,
~\Miniconda3\lib\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()
~\Miniconda3\lib\site-packages\dgl\heterograph.py in from_networkx(self, nx_graph, node_attrs, edge_attrs) 5690 which will return a new graph created from the networkx graph. 5691 """ -> 5692 raise DGLError('DGLGraph.from_networkx is deprecated. Please call the following\n\n' 5693 '\t dgl.from_networkx(nx_graph, node_attrs, edge_attrs)\n\n' 5694 ', which creates a new DGLGraph from the networkx graph.')
DGLError: DGLGraph.from_networkx is deprecated. Please call the following
, which creates a new DGLGraph from the networkx graph.