|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.android.activityminer.model.evaluation.EvaluationResultCollection
public final class EvaluationResultCollection
A collection of evaluation results.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T> |
| Field Summary | |
|---|---|
private double |
avgPredictionTime
The average time to predict a sample during test runs. |
private String |
classifierDescription
The description of the evaluated classifier. |
private Configuration |
configuration
The configuration for the evaluation run. |
static Parcelable.Creator<EvaluationResultCollection> |
CREATOR
The Parcelable creator. |
private double |
estimatedTrainingTime
The average time needed for training with the given training set. |
private ArrayList<EvaluationResult> |
evalResults
The evaluation results. |
private String |
evaluationStrategyDescription
The description of the evaluation strategy. |
private android.support.v4.util.LongSparseArray<String> |
mapClassId2Name
The mapping of class identifiers to names. |
private double[] |
minMaxPredictionTime
The minimum and maximum of measured prediction times during test runs. |
private List<DBSampleStatistic> |
sampleStatistics
The sample distribution statistics. |
| Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
| Constructor Summary | |
|---|---|
EvaluationResultCollection(Configuration configuration,
String classifierDescription,
String evaluationStrategyDescription)
Constructor |
|
EvaluationResultCollection(List<DBSampleStatistic> sampleStatistics,
ArrayList<EvaluationResult> evalResults,
Configuration configuration,
double estimatedTrainingTime,
double avgPredictionTime,
double[] minMaxPredictionTime,
String classifierDescription,
String evaluationStrategyDescription,
android.support.v4.util.LongSparseArray<String> mapClassId2Name)
Constructor |
|
EvaluationResultCollection(List<DBSampleStatistic> sampleStatistics,
Configuration configuration,
String classifierDescription,
String evaluationStrategyDescription,
android.support.v4.util.LongSparseArray<String> mapClassId2Name)
Constructor |
|
EvaluationResultCollection(Parcel source)
Constructor |
|
| Method Summary | |
|---|---|
void |
addEvaluationResult(EvaluationResult evalResult)
Does add an evaluation result to the collection. |
int |
describeContents()
|
double |
getAvgPredictionTime()
Getter for the average time to predict a sample during test runs. |
android.support.v4.util.LongSparseArray<String> |
getClassId2NameMapping()
Getter for the class identifier to name mapping |
String |
getClassifierDescription()
Getter for the classifier description. |
Configuration |
getConfiguration()
Getter for the configuration |
double |
getEstimatedTrainingTime()
Getter for the estimated training time for the used training set. |
ArrayList<EvaluationResult> |
getEvaluationResults()
Getter for the evaluation results. |
String |
getEvaluationStrategyDescription()
Getter for the evaluation strategy description. |
double[] |
getMinMaxPredictionTime()
Getter for the minimum and maximum of measured prediction times. |
List<DBSampleStatistic> |
getSampleStatistics()
Getter for the sample statistics. |
double |
getTotalSampleCount()
Getter for the total sample count. |
void |
setAvgPredictionTime(double avgPredictionTime)
Setter for the average time to predict a sample during test runs. |
void |
setEstimatedTrainingTime(double estimatedTrainingTime)
Setter for the estimated training time for the used training set. |
void |
setMappingClassId2NameMapping(android.support.v4.util.LongSparseArray<String> mapClassId2Name)
Setter for the class identifier to name mapping |
void |
setMinMaxPredictionTimeDelta(double[] minMaxPredictionTime)
Setter for the minimum and maximum of measured prediction times. |
void |
setSampleStatistics(List<DBSampleStatistic> sampleStatistics)
Setter for the sample statistics |
int |
size()
Getter for the count of contained single evaluation results. |
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 String classifierDescription
private final String evaluationStrategyDescription
private final ArrayList<EvaluationResult> evalResults
private final List<DBSampleStatistic> sampleStatistics
private double estimatedTrainingTime
private double avgPredictionTime
private double[] minMaxPredictionTime
private final Configuration configuration
private final android.support.v4.util.LongSparseArray<String> mapClassId2Name
public static final Parcelable.Creator<EvaluationResultCollection> CREATOR
| Constructor Detail |
|---|
public EvaluationResultCollection(List<DBSampleStatistic> sampleStatistics,
Configuration configuration,
String classifierDescription,
String evaluationStrategyDescription,
android.support.v4.util.LongSparseArray<String> mapClassId2Name)
sampleStatistics - the sample statisticsconfiguration - configuration for the evaluation runclassifierDescription - the classifier descriptionevaluationStrategyDescription - the description of the evaluation strategy.mapClassId2Name - the mapping of class identifiers to names
public EvaluationResultCollection(Configuration configuration,
String classifierDescription,
String evaluationStrategyDescription)
configuration - configuration for the evaluation runclassifierDescription - the classifier descriptionevaluationStrategyDescription - the description of the evaluation strategy.
public EvaluationResultCollection(List<DBSampleStatistic> sampleStatistics,
ArrayList<EvaluationResult> evalResults,
Configuration configuration,
double estimatedTrainingTime,
double avgPredictionTime,
double[] minMaxPredictionTime,
String classifierDescription,
String evaluationStrategyDescription,
android.support.v4.util.LongSparseArray<String> mapClassId2Name)
sampleStatistics - the sample statisticsevalResults - the evaluation result listconfiguration - configuration for the evaluation runestimatedTrainingTime - the estimated time for trainingavgPredictionTime - the average time to predict a sampleminMaxPredictionTime - the minimum and maximum of measured prediction timesclassifierDescription - the classifier descriptionevaluationStrategyDescription - the description of the evaluation strategymapClassId2Name - the mapping of class identifiers to namespublic EvaluationResultCollection(Parcel source)
source - the parcel to create from| Method Detail |
|---|
public final void writeToParcel(Parcel dest,
int flags)
writeToParcel in interface Parcelablepublic final ArrayList<EvaluationResult> getEvaluationResults()
public final String getEvaluationStrategyDescription()
public final String getClassifierDescription()
public final List<DBSampleStatistic> getSampleStatistics()
public final void setSampleStatistics(List<DBSampleStatistic> sampleStatistics)
sampleStatistics - the sample statistics to setpublic final Configuration getConfiguration()
public final double getEstimatedTrainingTime()
public final void setEstimatedTrainingTime(double estimatedTrainingTime)
estimatedTrainingTime - the estimated training timepublic final double getAvgPredictionTime()
public final double[] getMinMaxPredictionTime()
public final void setAvgPredictionTime(double avgPredictionTime)
avgPredictionTime - the average prediction time to setpublic final void setMinMaxPredictionTimeDelta(double[] minMaxPredictionTime)
minMaxPredictionTime - the minimum and maximum of measured prediction timespublic double getTotalSampleCount()
public final void addEvaluationResult(EvaluationResult evalResult)
evalResult - the evaluation result to add
public final String toXML()
throws Exception
toXML in interface SerializableDataExceptionpublic final int describeContents()
describeContents in interface Parcelablepublic final int size()
public final android.support.v4.util.LongSparseArray<String> getClassId2NameMapping()
public final void setMappingClassId2NameMapping(android.support.v4.util.LongSparseArray<String> mapClassId2Name)
mapClassId2Name - the class identifier to name mapping
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||