Constructor and Description |
---|
FScoreEvaluator() |
Modifier and Type | Method and Description |
---|---|
void |
evaluate()
Run the training procedure and compute score.
|
double |
getBeta()
Get the beta value of the F-score
|
double |
getScore()
Tells the score resulting of the evaluation
|
void |
setBeta(double beta)
Sets the beta value for the F-score
|
void |
setClassifier(Classifier<T> cls)
Sets the classifier to use for evaluation
|
void |
setTestingSet(java.util.List<TrainingSample<T>> testlist)
Sets the list of testing samples on which to evaluate the classifier
|
void |
setTrainingSet(java.util.List<TrainingSample<T>> trainlist)
Sets the list of training samples on which to train the classifier
|
public void setClassifier(Classifier<T> cls)
Evaluator
setClassifier
in interface Evaluator<T>
cls
- the classifierpublic void setTrainingSet(java.util.List<TrainingSample<T>> trainlist)
Evaluator
setTrainingSet
in interface Evaluator<T>
trainlist
- the training setpublic void setTestingSet(java.util.List<TrainingSample<T>> testlist)
Evaluator
setTestingSet
in interface Evaluator<T>
testlist
- the testing setpublic void evaluate()
Evaluator
public double getScore()
Evaluator
public double getBeta()
public void setBeta(double beta)
beta
- the beta value