org.android.activityminer.model.evaluation
Class EvaluationResultCollection

Package class diagram package EvaluationResultCollection
java.lang.Object
  extended by org.android.activityminer.model.evaluation.EvaluationResultCollection
All Implemented Interfaces:
Parcelable, SerializableData

public final class EvaluationResultCollection
extends Object
implements SerializableData, Parcelable

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

classifierDescription

private final String classifierDescription
The description of the evaluated classifier.


evaluationStrategyDescription

private final String evaluationStrategyDescription
The description of the evaluation strategy.


evalResults

private final ArrayList<EvaluationResult> evalResults
The evaluation results.


sampleStatistics

private final List<DBSampleStatistic> sampleStatistics
The sample distribution statistics.


estimatedTrainingTime

private double estimatedTrainingTime
The average time needed for training with the given training set.


avgPredictionTime

private double avgPredictionTime
The average time to predict a sample during test runs.


minMaxPredictionTime

private double[] minMaxPredictionTime
The minimum and maximum of measured prediction times during test runs.


configuration

private final Configuration configuration
The configuration for the evaluation run.


mapClassId2Name

private final android.support.v4.util.LongSparseArray<String> mapClassId2Name
The mapping of class identifiers to names.


CREATOR

public static final Parcelable.Creator<EvaluationResultCollection> CREATOR
The Parcelable creator.

Constructor Detail

EvaluationResultCollection

public EvaluationResultCollection(List<DBSampleStatistic> sampleStatistics,
                                  Configuration configuration,
                                  String classifierDescription,
                                  String evaluationStrategyDescription,
                                  android.support.v4.util.LongSparseArray<String> mapClassId2Name)
Constructor

Parameters:
sampleStatistics - the sample statistics
configuration - configuration for the evaluation run
classifierDescription - the classifier description
evaluationStrategyDescription - the description of the evaluation strategy.
mapClassId2Name - the mapping of class identifiers to names

EvaluationResultCollection

public EvaluationResultCollection(Configuration configuration,
                                  String classifierDescription,
                                  String evaluationStrategyDescription)
Constructor

Parameters:
configuration - configuration for the evaluation run
classifierDescription - the classifier description
evaluationStrategyDescription - the description of the evaluation strategy.

EvaluationResultCollection

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)
Constructor

Parameters:
sampleStatistics - the sample statistics
evalResults - the evaluation result list
configuration - configuration for the evaluation run
estimatedTrainingTime - the estimated time for training
avgPredictionTime - the average time to predict a sample
minMaxPredictionTime - the minimum and maximum of measured prediction times
classifierDescription - the classifier description
evaluationStrategyDescription - the description of the evaluation strategy
mapClassId2Name - the mapping of class identifiers to names

EvaluationResultCollection

public EvaluationResultCollection(Parcel source)
Constructor

Parameters:
source - the parcel to create from
Method Detail

writeToParcel

public final void writeToParcel(Parcel dest,
                                int flags)
Specified by:
writeToParcel in interface Parcelable

getEvaluationResults

public final ArrayList<EvaluationResult> getEvaluationResults()
Getter for the evaluation results.

Returns:
the evaluation results

getEvaluationStrategyDescription

public final String getEvaluationStrategyDescription()
Getter for the evaluation strategy description.

Returns:
the description of the evaluation strategy

getClassifierDescription

public final String getClassifierDescription()
Getter for the classifier description.

Returns:
the description of the classifier

getSampleStatistics

public final List<DBSampleStatistic> getSampleStatistics()
Getter for the sample statistics.

Returns:
the sample statistics

setSampleStatistics

public final void setSampleStatistics(List<DBSampleStatistic> sampleStatistics)
Setter for the sample statistics

Parameters:
sampleStatistics - the sample statistics to set

getConfiguration

public final Configuration getConfiguration()
Getter for the configuration

Returns:
the configuration

getEstimatedTrainingTime

public final double getEstimatedTrainingTime()
Getter for the estimated training time for the used training set.

Returns:
the estimated training time

setEstimatedTrainingTime

public final void setEstimatedTrainingTime(double estimatedTrainingTime)
Setter for the estimated training time for the used training set.

Parameters:
estimatedTrainingTime - the estimated training time

getAvgPredictionTime

public final double getAvgPredictionTime()
Getter for the average time to predict a sample during test runs.

Returns:
the average time to predict a sample during test runs

getMinMaxPredictionTime

public final double[] getMinMaxPredictionTime()
Getter for the minimum and maximum of measured prediction times.

Returns:
the minimum and maximum of measured prediction times

setAvgPredictionTime

public final void setAvgPredictionTime(double avgPredictionTime)
Setter for the average time to predict a sample during test runs.

Parameters:
avgPredictionTime - the average prediction time to set

setMinMaxPredictionTimeDelta

public final void setMinMaxPredictionTimeDelta(double[] minMaxPredictionTime)
Setter for the minimum and maximum of measured prediction times.

Parameters:
minMaxPredictionTime - the minimum and maximum of measured prediction times

getTotalSampleCount

public double getTotalSampleCount()
Getter for the total sample count.

Returns:
the total sample count.

addEvaluationResult

public final void addEvaluationResult(EvaluationResult evalResult)
Does add an evaluation result to the collection.

Parameters:
evalResult - the evaluation result to add

toXML

public final String toXML()
                   throws Exception
Specified by:
toXML in interface SerializableData
Throws:
Exception

describeContents

public final int describeContents()
Specified by:
describeContents in interface Parcelable

size

public final int size()
Getter for the count of contained single evaluation results.

Returns:
the count of contained single evaluation results

getClassId2NameMapping

public final android.support.v4.util.LongSparseArray<String> getClassId2NameMapping()
Getter for the class identifier to name mapping

Returns:
the mapping of class identifiers to names

setMappingClassId2NameMapping

public final void setMappingClassId2NameMapping(android.support.v4.util.LongSparseArray<String> mapClassId2Name)
Setter for the class identifier to name mapping

Parameters:
mapClassId2Name - the class identifier to name mapping