|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.model.evaluation.EvaluationResult
public final class EvaluationResult
Result type for the evaluation of a single feature combination.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface android.os.Parcelable |
---|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T> |
Field Summary | |
---|---|
private long[] |
classesForIndices
The class identifiers as array where the array index corresponds to the row/column in the confusion matrix. |
private double |
correctCount
Count of correct classified samples. |
static Parcelable.Creator<EvaluationResult> |
CREATOR
The Parcelable creator. |
private List<String> |
features
The evaluated features. |
private double |
incorrectCount
Count of incorrect classified samples. |
private List<PerClassStatistic> |
perClassStatistics
The statistics per class. |
private double[] |
rowPackedCM
The row packed confusion matrix. |
Fields inherited from interface android.os.Parcelable |
---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
Constructor Summary | |
---|---|
EvaluationResult(List<String> features)
Constructor |
|
EvaluationResult(List<String> features,
List<PerClassStatistic> perClassStatistics,
double correct,
double incorrect,
double[] rowPackedCM,
long[] classesForIndices)
Constructor |
|
EvaluationResult(Parcel source)
Constructor |
Method Summary | |
---|---|
int |
describeContents()
|
EvaluationResult |
fromConfusionMatrix(ConfusionMatrix confusionMatrix)
Method to update the result with the confusion matrix of the evaluation run. |
long[] |
getClassesForIndices()
Getter for the classes for the confusion matrix indices. |
List<String> |
getFeatureSet()
Getter for the feature set. |
String |
getFeatureSetDescription()
Getter for description of the feature set. |
double |
getOverallAccuracyPercentage()
Getter for the percentage of correct prediction ( the overall accuracy ). |
double |
getOverallErrorPercentage()
Getter for the percentage of incorrect prediction ( the overall classification error ). |
List<PerClassStatistic> |
getPerClassStatistics()
Getter for the class statistics |
double[] |
getRowPackedCM()
Getter for the row packed confusion matrix. |
double |
getTotalCorrectCount()
Getter for the total count of correct classified activities. |
double |
getTotalCount()
Getter for the total count of predicted activities. |
double |
getTotalIncorrectCount()
Getter for the total count of incorrect classified activities. |
String |
toXML()
|
void |
writeToParcel(Parcel dest,
int flags)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final List<String> features
private final List<PerClassStatistic> perClassStatistics
private double correctCount
private double incorrectCount
private double[] rowPackedCM
private long[] classesForIndices
public static final Parcelable.Creator<EvaluationResult> CREATOR
Constructor Detail |
---|
public EvaluationResult(List<String> features, List<PerClassStatistic> perClassStatistics, double correct, double incorrect, double[] rowPackedCM, long[] classesForIndices)
features
- the feature setperClassStatistics
- correct
- the count of correct classified samplesincorrect
- the count of incorrect classified samplesrowPackedCM
- the row packed confusion matrix valuesclassesForIndices
- the class label for the confusion matrix row/column
indices.public EvaluationResult(List<String> features)
features
- the feature setpublic EvaluationResult(Parcel source)
source
- the parcel to create fromMethod Detail |
---|
public final void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public double[] getRowPackedCM()
public long[] getClassesForIndices()
public final double getTotalCorrectCount()
public final double getTotalIncorrectCount()
public final double getOverallAccuracyPercentage()
public final double getOverallErrorPercentage()
public final double getTotalCount()
public final List<String> getFeatureSet()
public final String getFeatureSetDescription()
public final List<PerClassStatistic> getPerClassStatistics()
public final EvaluationResult fromConfusionMatrix(ConfusionMatrix confusionMatrix)
confusionMatrix
- the confusion matrix to update results with
public final String toXML() throws Exception
toXML
in interface SerializableData
Exception
public final int describeContents()
describeContents
in interface Parcelable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |