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
abstract class L2R_ErmFunction extends java.lang.Object implements Function
-
-
Constructor Summary
Constructors Constructor Description L2R_ErmFunction(Problem prob, Parameter parameter, double[] C)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract double
C_times_loss(int i, double wx_i)
double
fun(double[] w)
int
get_nr_variable()
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 Detail
-
C
final double[] C
-
prob
final Problem prob
-
wx
double[] wx
-
tmp
double[] tmp
-
wTw
private double wTw
-
regularize_bias
final boolean regularize_bias
-
-
Method Detail
-
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)
-
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
-
-