public enum GlrmRegularizer extends java.lang.Enum<GlrmRegularizer>
Enum Constant and Description |
---|
L1 |
L2 |
None |
NonNegative |
OneSparse |
Quadratic |
Simplex |
UnitOneSparse |
Modifier and Type | Method and Description |
---|---|
abstract double[] |
project(double[] u,
java.util.Random rand)
Project X,Y matrices into appropriate subspace so regularizer is finite.
|
abstract double |
regularize(double[] u)
Regularization function applied to a single row x_i or column y_j
|
double |
regularize(double[][] u)
Regularization applied to an entire matrix (sum over rows)
|
abstract double[] |
rproxgrad(double[] u,
double delta,
java.util.Random rand)
\prox_{\alpha_k*r}(u): Proximal gradient of (step size) * (regularization function) evaluated at vector u
|
static GlrmRegularizer |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GlrmRegularizer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GlrmRegularizer None
public static final GlrmRegularizer Quadratic
public static final GlrmRegularizer L2
public static final GlrmRegularizer L1
public static final GlrmRegularizer NonNegative
public static final GlrmRegularizer OneSparse
public static final GlrmRegularizer UnitOneSparse
public static final GlrmRegularizer Simplex
public static GlrmRegularizer[] values()
for (GlrmRegularizer c : GlrmRegularizer.values()) System.out.println(c);
public static GlrmRegularizer valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract double regularize(double[] u)
public final double regularize(double[][] u)
public abstract double[] rproxgrad(double[] u, double delta, java.util.Random rand)
public abstract double[] project(double[] u, java.util.Random rand)