question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

module load error:module 'deepchem.models' has no attribute 'GraphConvModel'

See original GitHub issue

❓ Questions & Help

Hi, team! i failed to load ‘GraphConv’ model when in an effort to load it. the simplified codes as follows:

import deepchem as dc

model = dc.models.GraphConvModel(n_tasks=1,
                                 mode='regression',
                                 batch_size=100,
                                 learning_rate=0.001
                                 )

Traceback (most recent call last):
  File "D:\ProgramData\anaconda\lib\site-packages\IPython\core\interactiveshell.py", line 3441, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-3-67d77169f2a2>", line 1, in <module>
    model = dc.models.GraphConvModel(n_tasks=1,
AttributeError: module 'deepchem.models' has no attribute 'GraphConvModel'

i cannot resolve this issue whether it is mainly due to IPython or deepchem itself ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
biotech7commented, Sep 10, 2021

as for misunderstanding of pytorch-dependant module , this is an normal error because i use pytorch as backend while GraphConvModel is a tensorflow-dependant module. so calling GraphConvModel will conflict with my backend env. resulting in raising exception.

0reactions
biotech7commented, Sep 10, 2021

i reproduced this code in Windows 10 as well as centos 7 with result of the same error while other modules work smoothly. deepchem version: v2.6.0 dev python version v3.7.6(in conda 4.10.3)

Read more comments on GitHub >

github_iconTop Results From Across the Web

deepchem/Lobby - Gitter
The error I am getting is as follows: AttributeError: module 'deepchem.models' has no attribute 'TensorflowMultiTaskClassifier'. I am using deepchem 2.1.0, ...
Read more >
Model Classes — deepchem 2.6.2.dev documentation
The SklearnModel class provides a wrapper around scikit-learn models that allows scikit-learn models to be trained on Dataset objects and evaluated with the ......
Read more >
Tutorial Part 4: Introduction to Graph Convolutions
Cause: module 'gast' has no attribute 'Num' WARNING:tensorflow:Entity <bound method GraphPool.call of <deepchem.models.layers.
Read more >
Hyperparameter tuning for regression models and Graph CNNs
Dear DeepChem community, I know this issue has been reported and discussed previously, but I don't know if it has been resolved.
Read more >
DeepChem教程19: 用Zinc筛选HIV抑制剂_lishaoan77的博客
本教程我们学习如何用DeepChem (ZINC)有效的筛选大的化学合数据库。 ... at 0x1a3e35c048>>: AttributeError: module 'gast' has no attribute 'Num'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found