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 Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `generatePartition(Instances data)` Builds the classifier to generate a partition.
    `double[]` | `getMembershipValues(Instance inst)` Computes an array that has a value for each element in the partition.
    `int` | `numElements()` Returns the number of elements in the partition.

    - ### Methods inherited from interface weka.core.CapabilitiesHandler

      `getCapabilities`

- - ### Method Detail

    - #### generatePartition

          void generatePartition(Instances data)
                                 throws java.lang.Exception

      Builds the classifier to generate a partition.
      Throws:
        `java.lang.Exception`

    - #### getMembershipValues

          double[] getMembershipValues(Instance inst)
                                       throws java.lang.Exception

      Computes an array that has a value for each element in the partition.
      Throws:
        `java.lang.Exception`

    - #### numElements

          int numElements()
                          throws java.lang.Exception

      Returns the number of elements in the partition.
      Throws:
        `java.lang.Exception`