public abstract class Model
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected double |
alpha
Learning rate
|
protected int |
features
Number of features in a data point (dimensions)
|
protected double[] |
labels
Class labels in the classification {+1,-1} is the default for Binary Classification
|
protected int |
samples
Number of data points
|
protected double[] |
w
Weight Vector
|
Constructor and Description |
---|
Model() |
Model(int samples,
int features,
double[] labels,
double[] w) |
Model(int samples,
int features,
double[] labels,
double[] w,
double alpha) |
Modifier and Type | Method and Description |
---|---|
double |
getAlpha() |
int |
getFeatures() |
double[] |
getLabels() |
int |
getSamples() |
double[] |
getW() |
abstract void |
saveModel(java.lang.String file) |
void |
setAlpha(double alpha) |
protected int samples
protected int features
protected double[] labels
protected double[] w
protected double alpha