Documentation of 'com.datumbox.framework.core.mathematics.regularization.L2Regularizer' Java class
L2Regularizer
com.datumbox.framework.core.mathematics.regularization

Class L2Regularizer



  • public class L2Regularizer
    extends java.lang.Object
    Utility class for L2 regularization.
    • Constructor Summary

      Constructors 
      Constructor and Description
      L2Regularizer() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static <K> double estimatePenalty(double l2, java.util.Map<K,java.lang.Double> weights)
      Estimates the penalty by adding the L2 regularization.
      static <K> void updateWeights(double l2, double learningRate, java.util.Map<K,java.lang.Double> weights, java.util.Map<K,java.lang.Double> newWeights)
      Updates the weights by applying the L2 regularization.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • L2Regularizer

        public L2Regularizer()
    • Method Detail

      • updateWeights

        public static <K> void updateWeights(double l2,
                                             double learningRate,
                                             java.util.Map<K,java.lang.Double> weights,
                                             java.util.Map<K,java.lang.Double> newWeights)
        Updates the weights by applying the L2 regularization.
        Type Parameters:
        K -
        Parameters:
        l2 -
        learningRate -
        weights -
        newWeights -
      • estimatePenalty

        public static <K> double estimatePenalty(double l2,
                                                 java.util.Map<K,java.lang.Double> weights)
        Estimates the penalty by adding the L2 regularization.
        Type Parameters:
        K -
        Parameters:
        l2 -
        weights -
        Returns:

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.