Class HoldOutMethod

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

public class HoldOutMethod extends ValidationMethod
Implements hold-out validation method.
  • Constructor Details

    • HoldOutMethod

      public HoldOutMethod(DatasetReader datasetReader, double trainingSize, boolean estimateProbabilities, boolean shuffle, Long seed)
      Constructs a HoldOut by receiving a DatasetReader, the size of the training set and if the data should be shuffled.
      Parameters:
      datasetReader - a DatasetReader to read the dataset
      trainingSize - size of the training dataset (percentage)
      estimateProbabilities - true to estimate the probabilities of the class configurations, false otherwise
      shuffle - true to shuffle the sequences before splitting them into training and test datasets, false otherwise
      seed - seed used to shuffle the sequences
  • Method Details