Class AggregateableEvaluation

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

public class AggregateableEvaluation extends Evaluation
Subclass of Evaluation that provides a method for aggregating the results stored in another Evaluation object. Delegates to the actual implementation in weka.classifiers.evaluation.AggregateableEvaluation.
Version:
$Revision: 9320 $
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 void 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.
      Parameters:
      evaluation - the evaluation object to aggregate