java.lang.Object
edu.msu.cme.rdp.classifier.train.validation.crossvalidate.CrossValidate

public class CrossValidate extends Object
  • 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

      public String calErrorRate(ArrayList<HashMap> statusCountList)
      sensitivity = #TP / (#TP + #FN) specificity = #TN / (#TN + #FP)
      Parameters:
      statusCountList -