Class AggregateableEvaluation

    • 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 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>