Package weka.core

Interface PartitionGenerator

All Superinterfaces:
CapabilitiesHandler
All Known Implementing Classes:
Bagging, FilteredClassifier, J48, RandomCommittee, RandomForest, RandomizableFilteredClassifier, RandomTree, REPTree

public interface PartitionGenerator extends CapabilitiesHandler
This interface can be implemented by algorithms that generate a partition of the instance space (e.g., decision trees).
Version:
$Revision: 9117 $
Author:
Eibe Frank (eibe@cs.waikato.ac.nz)
  • Method Details

    • generatePartition

      void generatePartition(Instances data) throws Exception
      Builds the classifier to generate a partition.
      Throws:
      Exception
    • getMembershipValues

      double[] getMembershipValues(Instance inst) throws Exception
      Computes an array that has a value for each element in the partition.
      Throws:
      Exception
    • numElements

      int numElements() throws Exception
      Returns the number of elements in the partition.
      Throws:
      Exception