public class TrainedModel extends Model
Constructor and Description |
---|
TrainedModel() |
TrainedModel(BinaryBatchModel binaryBatchModel,
double accuracy,
double trTime,
java.lang.String modelname) |
TrainedModel(BinaryBatchModel binaryBatchModel,
double accuracy,
double trTime,
java.lang.String modelname,
int par) |
TrainedModel(BinaryBatchModel binaryBatchModel,
double accuracy,
java.lang.String modelname) |
TrainedModel(double accuracy,
java.lang.String modelname) |
TrainedModel(int samples,
int features,
double[] labels,
double[] w) |
TrainedModel(int samples,
int features,
double[] labels,
double[] w,
double alpha) |
TrainedModel(int samples,
int features,
double[] labels,
double[] w,
double alpha,
double accuracy,
java.lang.String modelname) |
TrainedModel(int samples,
int features,
double[] labels,
double[] w,
double accuracy,
java.lang.String modelname) |
Modifier and Type | Method and Description |
---|---|
double |
getAccuracy() |
java.lang.String |
getModelName() |
void |
saveModel(java.lang.String file) |
void |
setAccuracy(double accuracy) |
void |
setModelName(java.lang.String modelName) |
java.lang.String |
toCSVString() |
java.lang.String |
toString() |
getAlpha, getFeatures, getLabels, getSamples, getW, setAlpha
public TrainedModel()
public TrainedModel(int samples, int features, double[] labels, double[] w)
public TrainedModel(int samples, int features, double[] labels, double[] w, double alpha)
public TrainedModel(double accuracy, java.lang.String modelname)
public TrainedModel(int samples, int features, double[] labels, double[] w, double accuracy, java.lang.String modelname)
public TrainedModel(int samples, int features, double[] labels, double[] w, double alpha, double accuracy, java.lang.String modelname)
public TrainedModel(BinaryBatchModel binaryBatchModel, double accuracy, java.lang.String modelname)
public TrainedModel(BinaryBatchModel binaryBatchModel, double accuracy, double trTime, java.lang.String modelname)
public TrainedModel(BinaryBatchModel binaryBatchModel, double accuracy, double trTime, java.lang.String modelname, int par)
public double getAccuracy()
public void setAccuracy(double accuracy)
public java.lang.String getModelName()
public void setModelName(java.lang.String modelName)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toCSVString()