PredictionManager

dbn

## Class PredictionManager

- java.lang.Object
- - dbn.PredictionManager

-     public class PredictionManager
      extends java.lang.Object

  A control class that manages the prediction task. It contains only one method that manages the prediction.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PredictionManager()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `TestData(mulan.classifier.MultiLabelLearnerBase learner, mulan.data.MultiLabelInstances testData)` Takes as parameters the learned classifier and a dataset, sets up the `Evaluator`, predicts the labels for the specific dataset and prints the measures.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PredictionManager

          public PredictionManager()

  - ### Method Detail

    - #### TestData

          public long TestData(mulan.classifier.MultiLabelLearnerBase learner,
                      mulan.data.MultiLabelInstances testData)
                        throws java.lang.Exception

      Takes as parameters the learned classifier and a dataset, sets up the `Evaluator`, predicts the labels for the specific dataset and prints the measures.
      Throws a `NullPointerException` when a parameter has not been set or the dataset is empty.
      Parameters:
        `learner` - the trained `DBLearner` classifier
        `testData` - the test dataset
      Returns:
        the duration of the prediction and evaluation in milliseconds
      Throws:
        `java.lang.NullPointerException`
        `java.lang.Exception`