public class Performance extends Object implements Serializable, Cloneable
PerformanceComparator,
Serialized Form| Constructor and Description |
|---|
Performance(Point<Object> values,
AbstractEvaluationWrapper evaluation,
int evalType,
int classLabel,
weka.classifiers.Classifier classifier)
Initializes the performance container.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns a copy of itself.
|
weka.classifiers.Classifier |
getClassifier()
Returns the classifier.
|
int |
getClassLabel()
Returns the class label index (may not be applicable).
|
int |
getEvaluation()
Returns the evaluation type.
|
double |
getPerformance()
returns the performance measure.
|
double |
getPerformance(int evaluation)
returns the performance measure.
|
Point<Object> |
getValues()
returns the values for this performance.
|
void |
setPerformance(int evaluation,
double value)
returns the performance measure.
|
String |
toString()
returns a string representation of this performance object.
|
public Performance(Point<Object> values, AbstractEvaluationWrapper evaluation, int evalType, int classLabel, weka.classifiers.Classifier classifier) throws Exception
values - the valuesevaluation - the evaluation to extract the performance
measures from, can be nullevalType - the type of evaluationclassLabel - the class label index (if applicable)classifier - the classifierException - if retrieving of measures failspublic Object clone()
public int getEvaluation()
public int getClassLabel()
public double getPerformance()
public void setPerformance(int evaluation,
double value)
evaluation - the type of evaluation to returnvalue - the performance measurepublic double getPerformance(int evaluation)
evaluation - the type of evaluation to returnpublic Point<Object> getValues()
public weka.classifiers.Classifier getClassifier()
Copyright © 2021 University of Waikato, Hamilton, NZ. All Rights Reserved.