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.

import deepchem as dc

See original GitHub issue

Currently deepchem suffers from a glut of long imports. The package structure leads to long names that aren’t friendly to import or reason with. Here are some proposed changes (building on ideas in #264):

  • Like numpy or tensorflow, change deepchem import to dc. Then to import a primitive in deepchem.prim (proposed in #264), users can say dc.prim.foo_bar(...)
  • Expose all deepchem models in deepchem.models. Then models can be created with model = dc.models.RobustMultitask(...) for example.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
mpharrigancommented, Nov 2, 2016

The new names are much more ambiguous. I weep for a new student trying to understand “feats” “hyper” and “trans”. With modern IDEs, the autocomplete should take care of the extra keystrokes

0reactions
rbharathcommented, Dec 17, 2016

I think the code transition is complete. Feedback from active deepchem users has been mostly positive, so the new API is here to stay. For further style discussions, please raise new issues with specific code examples that are awkward under new API and we can discuss there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't import deepchem as dc · Issue #1466 - GitHub
So, When I search conda list, I can found deepchem deepchem 2.1.1.dev243 but The other prob... ... I can't import deepchem as dc...
Read more >
Installation — deepchem 2.6.2.dev documentation
Install deepchem via pip or conda by simply running, ... The nightly version is built by the HEAD of DeepChem. ... import deepchem...
Read more >
Getting DeepChem running in Colab - Community
... deepchem -c rdkit -c conda-forge -c omnia deepchem-gpu=2.3.0 import sys sys.path.append('/usr/local/lib/python3.7/site-packages/') import deepchem as dc.
Read more >
Getting Started with DeepChem | Depth-First
A Featurizer transforms input data into a form more appropriate for machine learning. In [138]:. import deepchem as dc ...
Read more >
How to use the deepchem.metrics function in ... - Snyk
import os import numpy as np import shutil import deepchem as dc from deepchem.molnet import load_muv np.random.seed(123) # Load MUV data muv_tasks, ...
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