class_docstr: Applies regularizers to the parameters of a Module based on regex matches.
docstr: # Parameters
  
  regexes : `List[Tuple[str, Regularizer]]`, optional (default = `None`)
      A sequence of pairs (regex, Regularizer), where each Regularizer
      applies to the parameters its regex matches (and that haven't previously
      been matched).
code: def __init__(
      self, regexes: List[Tuple[str, Regularizer]] = None
  ) -> None:
      """
      # Parameters
  
      regexes : `List[Tuple[str, Regularizer]]`, optional (default = `None`)
          A sequence of pairs (regex, Regularizer), where each Regularizer
          applies to the parameters its regex matches (and that haven't previously
          been matched).
      """
      self._regularizers = regexes or []
  
file_path: allennlp/allennlp/nn/regularizers/regularizer_applicator.py
imports: import re
  from typing import List, Tuple
  import torch
  from allennlp.common import FromParams
  from allennlp.nn.regularizers.regularizer import Regularizer
label_desc: Use image node_id 1 to create a new RegularizerApplicator object from inherited base classes: FromParams with example: obj = RegularizerApplicator(regexes)