Skip to content

Commit

Permalink
Merge pull request #2127 from peastman/tutorial5
Browse files Browse the repository at this point in the history
Updated tutorial 5
  • Loading branch information
Bharath Ramsundar committed Aug 31, 2020
2 parents bc05e7c + 54bbfba commit 9c55f5b
Show file tree
Hide file tree
Showing 2 changed files with 237 additions and 547 deletions.
8 changes: 4 additions & 4 deletions deepchem/molnet/load_function/muv_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def load_muv(featurizer='ECFP',
References
----------
.. [1] Rohrer, Sebastian G., and Knut Baumann. "Maximum unbiased validation
(MUV) data sets for virtual screening based on PubChem bioactivity data."
.. [1] Rohrer, Sebastian G., and Knut Baumann. "Maximum unbiased validation
(MUV) data sets for virtual screening based on PubChem bioactivity data."
Journal of chemical information and modeling 49.2 (2009): 169-184.
"""
# Load MUV dataset
Expand Down Expand Up @@ -89,8 +89,8 @@ def load_muv(featurizer='ECFP',
img_size=img_size, img_spec=img_spec)

loader = deepchem.data.CSVLoader(
tasks=MUV_tasks, smiles_field="smiles", featurizer=featurizer)
dataset = loader.featurize(dataset_file)
tasks=MUV_tasks, feature_field="smiles", featurizer=featurizer)
dataset = loader.create_dataset(dataset_file)

if split == None:
transformers = [deepchem.trans.BalancingTransformer(dataset=dataset)]
Expand Down
Loading

0 comments on commit 9c55f5b

Please sign in to comment.