Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package deepchem.nn not found #1257

JJ1991Z opened this issue May 13, 2018 · 1 comment

Package deepchem.nn not found #1257

JJ1991Z opened this issue May 13, 2018 · 1 comment


Copy link

@JJ1991Z JJ1991Z commented May 13, 2018


I am trying to re-run one the low-data python model examples. But received this following error msg:

AttributeError Traceback (most recent call last)
in ()
53 # Train support model on train
---> 54 support_model = dc.nn.SequentialSupportGraph(n_feat)
56 # Add layers

AttributeError: module 'deepchem' has no attribute 'nn'

I checked that in the github repo of deepchem, there is no model named as nn. Only in contrib packaged, but no functions in the contrib.nn is named as SequentialSupportGraph, GraphConv, GraphPooletc.

Add layers

support_model.add(dc.nn.GraphConv(64, n_feat, activation='relu'))
support_model.add(dc.nn.GraphConv(128, 64, activation='relu'))
support_model.add(dc.nn.GraphConv(64, 128, activation='relu'))
support_model.add(dc.nn.Dense(128, 64, activation='tanh'))

Maybe you deleted the nn. package from 2.0.0 deepchem?


This comment has been minimized.

Copy link

@rbharath rbharath commented May 15, 2018

@JJ1991Z Yes, good find. The one-shot models have not yet been converted into our new TensorGraph framework. I unfortunately haven't had the time to finish the port (#1084). If someone is interested in taking on the task, I'd love to see this happen though.

@rbharath rbharath closed this Jun 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.