class_docstr: Convenience class to let singletask models be fit on multitask data.
  
  This wrapper class groups a set of singletask `SklearnModel` objects to
  create a multitask model. This class exists primarily to facilitate
  benchmarking.
  
  Note
  ----
  This current implementation is only functional for sklearn models.
class_docstr_tok: ["Convenience","class","to","let","singletask","models","be","fit","on","multitask","data",".","This","wrapper","class","groups","a","set","of","singletask","`","SklearnModel","`","objects","to","create","a","multitask","model",".","This","class","exists","primarily","to","facilitate","benchmarking",".","Note","--","--","This","current","implementation","is","only","functional","for","sklearn","models","."]
docstr: Updates all singletask models with new information.
  
  Note
  ----
  This current implementation is only functional for sklearn models.
docstr_tok: ["Updates","all","singletask","models","with","new","information",".","Note","--","--","This","current","implementation","is","only","functional","for","sklearn","models","."]
code: def fit(self, dataset, **kwargs):
      """Updates all singletask models with new information.
  
      Note
      ----
      This current implementation is only functional for sklearn models.
      """
      if not isinstance(dataset, DiskDataset):
          raise ValueError(
              "SingletaskToMultitask only works with DiskDatasets"
          )
      logger.info("About to create task-specific datasets")
      task_datasets = self._create_task_datasets(dataset)
      for ind, task in enumerate(self.tasks):
          logger.info("Fitting model for task %s" % task)
          task_model = self.model_builder(self.task_model_dirs[task])
          task_model.fit(task_datasets[ind], **kwargs)
          task_model.save()
  
file_path: deepchem/deepchem/models/multitask.py
imports: import os
  import numpy
  import shutil
  import logging
  from deepchem.models import Model
  from deepchem.data import DiskDataset
  from deepchem.trans import undo_transforms
label_desc: Use image node_id 4 for calling the SingletaskToMultitask obj's underlying member method code with example usage: obj.fit(dataset) without return types