Constructor and Description |
---|
SvmSgd(int dim,
double lambda) |
SvmSgd(int dim,
double lambda,
double eta0) |
Modifier and Type | Method and Description |
---|---|
protected SvmSgd |
clone() |
void |
determineEta0(int imin,
int imax,
List<SparseFloatArray> xp,
gnu.trove.list.array.TDoubleArrayList yp) |
void |
determineEta0(int imin,
int imax,
SparseFloatArray[] xp,
double[] yp) |
double |
evaluateEta(int imin,
int imax,
List<SparseFloatArray> xp,
gnu.trove.list.array.TDoubleArrayList yp,
double eta) |
double |
evaluateEta(int imin,
int imax,
SparseFloatArray[] xp,
double[] yp,
double eta) |
static void |
main(String[] args) |
void |
renorm() |
void |
test(int imin,
int imax,
List<SparseFloatArray> xp,
gnu.trove.list.array.TDoubleArrayList yp,
String prefix) |
void |
test(int imin,
int imax,
SparseFloatArray[] xp,
double[] yp,
String prefix) |
double |
testOne(SparseFloatArray x,
double y,
double[] ploss,
double[] pnerr) |
void |
train(int imin,
int imax,
List<SparseFloatArray> xp,
gnu.trove.list.array.TDoubleArrayList yp) |
void |
train(int imin,
int imax,
SparseFloatArray[] xp,
double[] yp) |
void |
trainOne(SparseFloatArray x,
double y,
double eta) |
double |
wnorm() |
public SvmSgd(int dim, double lambda)
public SvmSgd(int dim, double lambda, double eta0)
public void renorm()
public double wnorm()
public double testOne(SparseFloatArray x, double y, double[] ploss, double[] pnerr)
public void trainOne(SparseFloatArray x, double y, double eta)
public void train(int imin, int imax, SparseFloatArray[] xp, double[] yp)
public void train(int imin, int imax, List<SparseFloatArray> xp, gnu.trove.list.array.TDoubleArrayList yp)
public void test(int imin, int imax, SparseFloatArray[] xp, double[] yp, String prefix)
public void test(int imin, int imax, List<SparseFloatArray> xp, gnu.trove.list.array.TDoubleArrayList yp, String prefix)
public double evaluateEta(int imin, int imax, SparseFloatArray[] xp, double[] yp, double eta)
public double evaluateEta(int imin, int imax, List<SparseFloatArray> xp, gnu.trove.list.array.TDoubleArrayList yp, double eta)
public void determineEta0(int imin, int imax, SparseFloatArray[] xp, double[] yp)
public void determineEta0(int imin, int imax, List<SparseFloatArray> xp, gnu.trove.list.array.TDoubleArrayList yp)