org.android.activityminer.logic.evaluation
Interface ValidationStrategy

Package class diagram package ValidationStrategy
All Known Implementing Classes:
CrossValidationStrategy

public interface ValidationStrategy

Interface for validation algorithms.


Method Summary
 EvaluationResult eval(Set<FeatureTypes> visibleAttributes, Classifier classifier)
          Does evaluate the classification results for the given classifier and visible attributes.
 double getAvgPreditionTime()
          Getter for the average time to predict an activity
 double getAvgTrainingTime()
          Getter for the average time to train an activity sample.
 String getDescription()
          Getter for the evaluation strategy description.
 double getMaxPreditionTime()
          Getter for the maximum prediction time
 double getMinPreditionTime()
          Getter for the minimum prediction time
 void prepare(List<TrainingActivity> trainingActivities)
          Method for preparation with the set of training activities.
 

Method Detail

getDescription

String getDescription()
Getter for the evaluation strategy description.

Returns:
the description of the evaluation strategy.

prepare

void prepare(List<TrainingActivity> trainingActivities)
Method for preparation with the set of training activities.

Parameters:
trainingActivities - the set of training activities.

eval

EvaluationResult eval(Set<FeatureTypes> visibleAttributes,
                      Classifier classifier)
Does evaluate the classification results for the given classifier and visible attributes.

Parameters:
visibleAttributes - the visible attributes for evaluation
classifier - the classifier to use for evaluation
Returns:
the evaluation result

getAvgPreditionTime

double getAvgPreditionTime()
Getter for the average time to predict an activity

Returns:
the average time to predict an activity

getMaxPreditionTime

double getMaxPreditionTime()
Getter for the maximum prediction time

Returns:
the maximum time to predict an activity

getMinPreditionTime

double getMinPreditionTime()
Getter for the minimum prediction time

Returns:
the minimum time to predict an activity

getAvgTrainingTime

double getAvgTrainingTime()
Getter for the average time to train an activity sample.

Returns:
the average time to train an activity sample