Class AggregateableEvaluation

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Detail

      • AggregateableEvaluation

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

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

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

      • 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