Class ValidationMethodFactory

java.lang.Object
es.upm.fi.cig.multictbnc.performance.ValidationMethodFactory

public class ValidationMethodFactory extends Object
Builds validation methods.
  • Constructor Details

    • ValidationMethodFactory

      public ValidationMethodFactory()
  • Method Details

    • getValidationMethod

      public static ValidationMethod getValidationMethod(String nameValidationMethod, DatasetReader datasetReader, DatasetReader testDatasetReader, double trainingSize, int folds, boolean estimateProbabilities, boolean shuffle, Long seed) throws UnreadDatasetException
      Builds the specified validation method.
      Parameters:
      nameValidationMethod - name of the validation method
      datasetReader - a DatasetReader to read the dataset
      testDatasetReader - a DatasetReader to read a test dataset
      trainingSize - size of the training dataset (percentage)
      folds - number of folds
      estimateProbabilities - true to estimate the probabilities of the class configurations, false otherwise
      shuffle - true to shuffle the sequences, false otherwise
      seed - seed used to shuffle the sequences
      Returns:
      a ValidationMethod
      Throws:
      UnreadDatasetException - if a provided dataset could not be read