class_docstr: Returns a weighted distribution over datasets at every epoch, where every
  task has a weight.
  
  Registered as a `MultiTaskEpochSampler` with name "weighted".
class_docstr_tok: ["Returns","a","weighted","distribution","over","datasets","at","every","epoch",",","where","every","task","has","a","weight",".","Registered","as","a","`","MultiTaskEpochSampler","`","with","name","``","weighted","''","."]
code: def get_task_proportions(
      self, data_loaders: Mapping[str, DataLoader]
  ) -> Dict[str, float]:
      total = sum(self.weights[task] for task in data_loaders.keys())
      return {
          task: self.weights[task] / total
          for task in data_loaders.keys()
      }
  
file_path: allennlp/allennlp/data/data_loaders/multitask_epoch_sampler.py
imports: from typing import Any, Dict, Mapping
  from allennlp.common.registrable import Registrable
  from allennlp.data.data_loaders.data_loader import DataLoader
label_desc: Use image node_id 2 for calling the WeightedSampler obj's underlying member method code with example usage: obj.get_task_proportions(data_loaders) and returns: unknown