e03697663af91cb98d66d095a965d05a9df3bf03,deepchem/models/multitask.py,SingletaskToMultitask,_to_singletask,#Any#Any#,54

Before Change


    Transforms a multitask dataset to a collection of singletask datasets.
    tasks = dataset.get_task_names()
    assert len(tasks) == len(task_dirs)
    log("Splitting multitask dataset into singletask datasets", dataset.verbose)
    task_datasets = [
        DiskDataset.create_dataset([], task_dirs[task_num], [task])
        for (task_num, task) in enumerate(tasks)
    ]
    //task_metadata_rows = {task: [] for task in tasks}
    for shard_num, (X, y, w, ids) in enumerate(dataset.itershards()):
      log("Processing shard %d" % shard_num, dataset.verbose)
      basename = "dataset-%d" % shard_num
      for task_num, task in enumerate(tasks):
        log("\tTask %s" % task, dataset.verbose)

After Change


    Transforms a multitask dataset to a collection of singletask datasets.
    tasks = dataset.get_task_names()
    assert len(tasks) == len(task_dirs)
    logger.info("Splitting multitask dataset into singletask datasets")
    task_datasets = [
        DiskDataset.create_dataset([], task_dirs[task_num], [task])
        for (task_num, task) in enumerate(tasks)
    ]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: deepchem/deepchem
Commit Name: e03697663af91cb98d66d095a965d05a9df3bf03
Time: 2020-05-11
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/models/multitask.py
Class Name: SingletaskToMultitask
Method Name: _to_singletask


Project Name: deepchem/deepchem
Commit Name: e03697663af91cb98d66d095a965d05a9df3bf03
Time: 2020-05-11
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/models/multitask.py
Class Name: SingletaskToMultitask
Method Name: fit


Project Name: deepchem/deepchem
Commit Name: 2c23fc6d9ccbfe543d85664163e96f195e1da114
Time: 2020-07-02
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/hyper/grid_search.py
Class Name: HyperparamOpt
Method Name: hyperparam_search


Project Name: deepchem/deepchem
Commit Name: e03697663af91cb98d66d095a965d05a9df3bf03
Time: 2020-05-11
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/models/multitask.py
Class Name: SingletaskToMultitask
Method Name: _to_singletask