Class CrossValidate
java.lang.Object
edu.msu.cme.rdp.classifier.train.validation.crossvalidate.CrossValidate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalErrorRate
(ArrayList<HashMap> statusCountList) sensitivity = #TP / (#TP + #FN) specificity = #TN / (#TN + #FP)runTest
(File tax_file, File source_file, File out_file, String rdmSelectedRank, float fraction, Integer partialLength, boolean useSeed, int min_bootstrap_words) The method randomly selects a fraction of sequences from the source file as test set, used the remaining sequences from the source file as training set.
-
Constructor Details
-
CrossValidate
public CrossValidate()
-
-
Method Details
-
runTest
public ArrayList<HashMap> runTest(File tax_file, File source_file, File out_file, String rdmSelectedRank, float fraction, Integer partialLength, boolean useSeed, int min_bootstrap_words) throws IOException The method randomly selects a fraction of sequences from the source file as test set, used the remaining sequences from the source file as training set.- Parameters:
tax_file
-source_file
-selectedTestSeqIDs
-- Throws:
IOException
-
calErrorRate
sensitivity = #TP / (#TP + #FN) specificity = #TN / (#TN + #FP)- Parameters:
statusCountList
-
-