Module es.upm.fi.cig.multictbnc
Class ValidationMethodFactory
java.lang.Object
es.upm.fi.cig.multictbnc.performance.ValidationMethodFactory
Builds validation methods.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationMethod
getValidationMethod
(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
- aDatasetReader
to read the datasettestDatasetReader
- aDatasetReader
to read a test datasettrainingSize
- size of the training dataset (percentage)folds
- number of foldsestimateProbabilities
-true
to estimate the probabilities of the class configurations,false
otherwiseshuffle
-true
to shuffle the sequences,false
otherwiseseed
- seed used to shuffle the sequences- Returns:
- a
ValidationMethod
- Throws:
UnreadDatasetException
- if a provided dataset could not be read
-