weka.core

## Interface BatchPredictor

- All Known Implementing Classes:
    FilteredClassifier, LogitBoost, RandomizableFilteredClassifier

      public interface BatchPredictor

  Interface to something that can produce predictions in a batch manner when presented with a set of Instances.
  Version:
    $Revision: 8937 $
  Author:
    Mark Hall (mhall{[at]}pentaho{[dot]}com)

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `double[][]` | `distributionsForInstances(Instances insts)` Batch scoring method
    `java.lang.String` | `getBatchSize()` Get the batch size to use.
    `void` | `setBatchSize(java.lang.String size)` Set the batch size to use.

- - ### Method Detail

    - #### setBatchSize

          void setBatchSize(java.lang.String size)

      Set the batch size to use. The implementer will prefer (but not necessarily expect) this many instances to be passed in to distributionsForInstances().
      Parameters:
        `size` - the batch size to use

    - #### getBatchSize

          java.lang.String getBatchSize()

      Get the batch size to use. The implementer will prefer (but not necessarily expect) this many instances to be passed in to distributionsForInstances(). Allows the preferred batch size to be encapsulated with the client.
      Returns:
        the batch size to use

    - #### distributionsForInstances

          double[][] distributionsForInstances(Instances insts)
                                               throws java.lang.Exception

      Batch scoring method
      Parameters:
        `insts` - the instances to get predictions for
      Returns:
        an array of probability distributions, one for each instance
      Throws:
        `java.lang.Exception` - if a problem occurs