class_docstr: Elastic Net Regularizer
class_docstr_tok: ["Elastic","Net","Regularizer"]
code: def regularized_all_param(self, reg_loss_function):
      for (
          model_param_name,
          model_param_value,
      ) in self.model.named_parameters():
          if model_param_name.endswith("weight"):
              reg_loss_function += self.lambda_reg * (
                  (
                      (1 - self.alpha_reg)
                      * ElasticNetRegularizer.__add_l2(
                          var=model_param_value
                      )
                  )
                  + (
                      self.alpha_reg
                      * ElasticNetRegularizer.__add_l1(
                          var=model_param_value
                      )
                  )
              )
      return reg_loss_function
  
imports: from enum import Enum
label_desc: Use image node_id 3 for calling the ElasticNetRegularizer obj's underlying member method code with example usage: obj.regularized_all_param(reg_loss_function) and returns: reg_loss_function