Package org.dulab.javanmf.updaterules
Class RegularizationUpdateRule
java.lang.Object
org.dulab.javanmf.updaterules.UpdateRule
org.dulab.javanmf.updaterules.RegularizationUpdateRule
- Direct Known Subclasses:
MUpdateRule
public abstract class RegularizationUpdateRule extends UpdateRule
Provides a template for updating matrix H in the direction of minimizing the distance D(X, WH) with regularization
- Author:
- Du-Lab Team dulab.binf@gmail.com
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RegularizationUpdateRule(Measure measure, double lambda, double mu)Creates an instance ofRegularizationUpdateRulewith given regularization coefficients -
Method Summary
-
Field Details
-
Constructor Details
-
RegularizationUpdateRule
public RegularizationUpdateRule(@Nonnull Measure measure, double lambda, double mu) throws java.lang.IllegalArgumentExceptionCreates an instance ofRegularizationUpdateRulewith given regularization coefficients- Parameters:
measure- distance measure associated with the update rulelambda- l1-regularization coefficientmu- l2-regularization coefficient- Throws:
java.lang.IllegalArgumentException- If at least one of the regularization coefficients is negative
-