public static enum PassiveAggressive.Policy extends Enum<PassiveAggressive.Policy>
Enum Constant and Description |
---|
HARD_PA
The new prediction hypothesis after a new example \( \mathbf{x}_t\) with label \(y_t\) is observed is:
|
PA_I
The new prediction hypothesis after a new example \( \mathbf{x}_t\) with label \(y_t\) is observed is:
|
PA_II
The new prediction hypothesis after a new example \( \mathbf{x}_t\) with label \(y_t\) is observed is:
|
Modifier and Type | Method and Description |
---|---|
static PassiveAggressive.Policy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PassiveAggressive.Policy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PassiveAggressive.Policy HARD_PA
\(argmin_{\mathbf{w}} \frac{1}{2} \left \| \mathbf{w}-\mathbf{w}_t \right \|^2\)
such that \( l(\mathbf{w};(\mathbf{x}_t,y_t))=0 \)
public static final PassiveAggressive.Policy PA_I
\(argmin_{\mathbf{w}} \frac{1}{2} \left \| \mathbf{w}-\mathbf{w}_t \right \|^2 + C\xi \)
such that \( l(\mathbf{w};(\mathbf{x}_t,y_t))\leq \xi \) and \( \xi\geq 0\)
public static final PassiveAggressive.Policy PA_II
\(argmin_{\mathbf{w}} \frac{1}{2} \left \| \mathbf{w}-\mathbf{w}_t \right \|^2 + C\xi^2 \)
such that \( l(\mathbf{w};(\mathbf{x}_t,y_t))\leq \xi \) and \( \xi\geq 0\)
public static PassiveAggressive.Policy[] values()
for (PassiveAggressive.Policy c : PassiveAggressive.Policy.values()) System.out.println(c);
public static PassiveAggressive.Policy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.