class_docstr: Applies regularizers to the parameters of a Module based on regex matches.
docstr: Parameters
  ----------
  regularizers : Sequence[Tuple[str, Regularizer]], optional (default = ())
      A sequence of pairs (regex, Regularizer), where each Regularizer
      applies to the parameters its regex matches (and that haven't previously
      been matched).
docstr_tok: ["Parameters","--","--","--","--","--","regularizers",":","Sequence","[","Tuple","[","str",",","Regularizer","]","]",",","optional","(","default","=","(",")",")","A","sequence","of","pairs","(","regex",",","Regularizer",")",",","where","each","Regularizer","applies","to","the","parameters","its","regex","matches","(","and","that","have","n't","previously","been","matched",")","."]
code: def __init__(self, regularizers=()):
      """
      Parameters
      ----------
      regularizers : Sequence[Tuple[str, Regularizer]], optional (default = ())
          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 = regularizers
  
file_path: magnitude/pymagnitude/third_party/allennlp/nn/regularizers/regularizer_applicator.py
imports: from __future__ import absolute_import
  import re
  import torch
  from allennlp.common.params import Params
  from allennlp.nn.regularizers.regularizer import Regularizer
label_desc: Use image node_id 1 to create a new RegularizerApplicator object from inherited base classes: object with example: obj = RegularizerApplicator(regularizers)