public class S3VMLightSGDQN extends java.lang.Object implements TransductiveClassifier<double[]>
Constructor and Description |
---|
S3VMLightSGDQN()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getC()
Tells the hyperparameter C
|
double |
getE()
Tells the number of epochs used by internal SGDQN solver for training
|
int |
getNumplus()
Tells the number of positive samples (used for transductive label estimation)
|
void |
setC(double c)
Sets the hyperparameter C
|
void |
setE(double e)
Sets the number of epochs used for training by the internal SGDQN solver
|
void |
setNumplus(int numplus)
Sets the number of positives samples (used for transductive label estimation)
|
void |
train(java.util.List<TrainingSample<double[]>> trainList,
java.util.List<TrainingSample<double[]>> testList)
Train the classifier on trainList, with the help of testList in a transductive way.
|
double |
valueOf(double[] t)
prediction output for t.
|
public void train(java.util.List<TrainingSample<double[]>> trainList, java.util.List<TrainingSample<double[]>> testList)
TransductiveClassifier
train
in interface TransductiveClassifier<double[]>
public double valueOf(double[] t)
TransductiveClassifier
valueOf
in interface TransductiveClassifier<double[]>
t
- sample to evaluatepublic int getNumplus()
public void setNumplus(int numplus)
numplus
- the number of positive samplespublic double getC()
public void setC(double c)
c
- the hyperparameter Cpublic double getE()
public void setE(double e)
e
- the number of epochs