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 double
C_times_loss
(int i, double wx_i) double
fun
(double[] w) int
double
linesearch_and_update
(double[] w, double[] s, MutableDouble f, double[] g, double alpha) (package private) void
XTv
(double[] v, double[] XTv) (package private) void
Xv
(double[] v, double[] Xv) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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_variable
in interfaceFunction
-
linesearch_and_update
public double linesearch_and_update(double[] w, double[] s, MutableDouble f, double[] g, double alpha) - Specified by:
linesearch_and_update
in interfaceFunction
-