Class TestDatasetMethod

java.lang.Object
es.upm.fi.cig.multictbnc.performance.ValidationMethod
es.upm.fi.cig.multictbnc.performance.TestDatasetMethod

public class TestDatasetMethod extends ValidationMethod
This class allows specifying different training and test datasets.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TestDatasetMethod(DatasetReader testDatasetReader, boolean estimateProbabilities)
    Constructor that receives a DatasetReader for the test dataset, whether the dataset should be shuffled, a seed for shuffling and whether the probabilities of each class configuration should be estimated during the testing.
    TestDatasetMethod(DatasetReader trainingDatasetReader, DatasetReader testDatasetReader, boolean estimateProbabilities)
    Constructor that receives two DatasetReader for the training and test datasets, whether the test dataset should be shuffled, a seed for shuffling and whether the probabilities of each class configuration should be estimated during the testing.
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluate(MultiCTBNC<?,?> model)
    Evaluates the performance of the specified model and returns the results.
    evaluate(MultiCTBNC<?,?> model, double preprocessingExecutionTime)
    Evaluates the performance of the specified model and returns the results.

    Methods inherited from class es.upm.fi.cig.multictbnc.performance.ValidationMethod

    displayModel, displayResults, setWriter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TestDatasetMethod

      public TestDatasetMethod(DatasetReader trainingDatasetReader, DatasetReader testDatasetReader, boolean estimateProbabilities)
      Constructor that receives two DatasetReader for the training and test datasets, whether the test dataset should be shuffled, a seed for shuffling and whether the probabilities of each class configuration should be estimated during the testing.
      Parameters:
      trainingDatasetReader - DatasetReader for the training dataset
      testDatasetReader - DatasetReader for the test dataset
      estimateProbabilities - true if the probabilities of class configurations are estimated, false otherwise
    • TestDatasetMethod

      public TestDatasetMethod(DatasetReader testDatasetReader, boolean estimateProbabilities)
      Constructor that receives a DatasetReader for the test dataset, whether the dataset should be shuffled, a seed for shuffling and whether the probabilities of each class configuration should be estimated during the testing.
      Parameters:
      testDatasetReader - DatasetReader for the test dataset
      estimateProbabilities - true if the probabilities of class configurations are estimated, false otherwise
  • Method Details