Package de.bwaldvogel.liblinear
Class L2R_ErmFunction
java.lang.Object
de.bwaldvogel.liblinear.L2R_ErmFunction
- All Implemented Interfaces:
Function
- Direct Known Subclasses:
L2R_L2_SvcFunction,L2R_LrFunction
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract doubleC_times_loss(int i, double wx_i) doublefun(double[] w) intdoublelinesearch_and_update(double[] w, double[] s, MutableDouble f, double[] g, double alpha) (package private) voidXTv(double[] v, double[] XTv) (package private) voidXv(double[] v, double[] Xv) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.bwaldvogel.liblinear.Function
get_diag_preconditioner, grad, Hv
-
Field Details
-
C
final double[] C -
prob
-
wx
double[] wx -
tmp
double[] tmp -
wTw
private double wTw -
regularize_bias
final boolean regularize_bias
-
-
Constructor Details
-
L2R_ErmFunction
-
-
Method Details
-
Xv
void Xv(double[] v, double[] Xv) -
XTv
void XTv(double[] v, double[] XTv) -
C_times_loss
protected abstract double C_times_loss(int i, double wx_i) -
fun
public double fun(double[] w) -
get_nr_variable
public int get_nr_variable()- Specified by:
get_nr_variablein interfaceFunction
-
linesearch_and_update
public double linesearch_and_update(double[] w, double[] s, MutableDouble f, double[] g, double alpha) - Specified by:
linesearch_and_updatein interfaceFunction
-