public class BinaryBatchModel extends Model
Constructor and Description |
---|
BinaryBatchModel() |
BinaryBatchModel(int samples,
int features,
double[] labels,
double[] w) |
BinaryBatchModel(int samples,
int features,
double[] labels,
double[] w,
double[][] x) |
BinaryBatchModel(int samples,
int features,
double[] labels,
double[] w,
double alpha,
double[][] x) |
BinaryBatchModel(int samples,
int features,
double[] labels,
double[] w,
double alpha,
double[][] x,
int iterations) |
Modifier and Type | Method and Description |
---|---|
double |
getAlpha() |
int |
getFeatures() |
int |
getIterations() |
double[] |
getLabels() |
int |
getSamples() |
double[] |
getW() |
double[][] |
getX() |
double[] |
getY() |
void |
saveModel(java.lang.String file) |
void |
setAlpha(double alpha) |
void |
setFeatures(int features) |
void |
setIterations(int iterations) |
void |
setSamples(int samples) |
void |
setW(double[] w) |
void |
setX(double[][] x) |
void |
setY(double[] y) |
java.lang.String |
toString() |
public BinaryBatchModel()
public BinaryBatchModel(int samples, int features, double[] labels, double[] w)
public BinaryBatchModel(int samples, int features, double[] labels, double[] w, double[][] x)
public BinaryBatchModel(int samples, int features, double[] labels, double[] w, double alpha, double[][] x)
public BinaryBatchModel(int samples, int features, double[] labels, double[] w, double alpha, double[][] x, int iterations)
public int getSamples()
getSamples
in class Model
public void setSamples(int samples)
public int getFeatures()
getFeatures
in class Model
public void setFeatures(int features)
public void setW(double[] w)
public double[][] getX()
public void setX(double[][] x)
public double[] getY()
public void setY(double[] y)
public int getIterations()
public void setIterations(int iterations)
public java.lang.String toString()
toString
in class java.lang.Object