Module es.upm.fi.cig.multictbnc
Class ValidationMethodFactory
java.lang.Object
es.upm.fi.cig.multictbnc.performance.ValidationMethodFactory
Builds validation methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationMethodgetValidationMethod(String nameValidationMethod, DatasetReader datasetReader, DatasetReader testDatasetReader, double trainingSize, int folds, boolean estimateProbabilities, boolean shuffle, Long seed) Builds the specified validation method.
-
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 methoddatasetReader- aDatasetReaderto read the datasettestDatasetReader- aDatasetReaderto read a test datasettrainingSize- size of the training dataset (percentage)folds- number of foldsestimateProbabilities-trueto estimate the probabilities of the class configurations,falseotherwiseshuffle-trueto shuffle the sequences,falseotherwiseseed- seed used to shuffle the sequences- Returns:
- a
ValidationMethod - Throws:
UnreadDatasetException- if a provided dataset could not be read
-