Class AggregateableEvaluation

java.lang.Object
weka.classifiers.evaluation.Evaluation
weka.classifiers.evaluation.AggregateableEvaluation
All Implemented Interfaces:
Serializable, Aggregateable<Evaluation>, RevisionHandler, Summarizable

public class AggregateableEvaluation extends Evaluation implements Aggregateable<Evaluation>
Subclass of Evaluation that provides a method for aggregating the results stored in another Evaluation object.
Version:
$Revision: 10153 $
Author:
Mark Hall (mhall{[at]}pentaho{[dot]}com)
See Also:
  • Constructor Details

    • AggregateableEvaluation

      public AggregateableEvaluation(Instances data) throws Exception
      Constructs a new AggregateableEvaluation object
      Parameters:
      data - the Instances to use
      Throws:
      Exception - if a problem occurs
    • AggregateableEvaluation

      public AggregateableEvaluation(Instances data, CostMatrix costMatrix) throws Exception
      Constructs a new AggregateableEvaluation object
      Parameters:
      data - the Instances to use
      costMatrix - the cost matrix to use
      Throws:
      Exception - if a problem occurs
    • AggregateableEvaluation

      public AggregateableEvaluation(Evaluation eval) throws Exception
      Constructs a new AggregateableEvaluation object based on an Evaluation object
      Parameters:
      eval - the Evaluation object to use
      Throws:
      Exception
  • Method Details

    • aggregate

      public AggregateableEvaluation aggregate(Evaluation evaluation)
      Adds the statistics encapsulated in the supplied Evaluation object into this one. Does not perform any checks for compatibility between the supplied Evaluation object and this one.
      Specified by:
      aggregate in interface Aggregateable<Evaluation>
      Parameters:
      evaluation - the evaluation object to aggregate
      Returns:
      the result of aggregation
    • finalizeAggregation

      public void finalizeAggregation()
      Description copied from interface: Aggregateable
      Call to complete the aggregation process. Allows implementers to do any final processing based on how many objects were aggregated.
      Specified by:
      finalizeAggregation in interface Aggregateable<Evaluation>