code: def _get_dropout_proportions(dropout_schedule, data_fraction):
      """Returns dropout proportions based on the dropout_schedule for the
      fraction of data seen at this stage of training.  Returns a list of
      pairs (pattern, dropout_proportion); for instance, it might return
      the list ['*', 0.625] meaning a dropout proportion of 0.625 is to
      be applied to all dropout components.
  
      Returns None if dropout_schedule is None.
  
      dropout_schedule might be (in the sample case using the default pattern of
      '*'): '0.1,0.5@0.5,0.1', meaning a piecewise linear function that starts at
      0.1 when data_fraction=0.0, rises to 0.5 when data_fraction=0.5, and falls
      again to 0.1 when data_fraction=1.0.   It can also contain space-separated
      items of the form 'pattern=schedule', for instance:
         '*=0.0,0.5,0.0 lstm.*=0.0,0.3@0.75,0.0'
      The more specific patterns should go later, otherwise they will be overridden
      by the less specific patterns' commands.
  
      Calls _get_component_dropout() for the different component name patterns
      in dropout_schedule.
  
      Arguments:
          dropout_schedule: Value for the --trainer.dropout-schedule option.
              See help for --trainer.dropout-schedule.
              See _self_test() for examples.
          data_fraction: The fraction of data seen until this stage of
              training.
  
      """
      if dropout_schedule is None:
          return None
      dropout_schedule = _parse_dropout_option(dropout_schedule)
      dropout_proportions = []
      for (
          component_name,
          component_dropout_schedule,
      ) in dropout_schedule:
          dropout_proportions.append(
              (
                  component_name,
                  _get_component_dropout(
                      component_dropout_schedule, data_fraction
                  ),
              )
          )
      return dropout_proportions
  
file_path: espnet/egs2/libritts_r/tts1/steps/libs/nnet3/train/dropout_schedule.py
imports: import logging
label_desc: Use image node_id 4 for calling a global function with example usage: _get_dropout_proportions(dropout_schedule, data_fraction) and returns: dropout_proportions, None