Class GenerateFinalWithPrediction

java.lang.Object
net.lifove.clami.util.GenerateFinalWithPrediction

public class GenerateFinalWithPrediction
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    GenerateFinalWithPrediction​(java.lang.String filePath)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String extractOnlyFileName​(java.lang.String file)
    To return only the file name
    void generateResult​(java.lang.String version, weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel)
    This method is for generate arff file for result.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • generateResult

      public void generateResult​(java.lang.String version, weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel)
      This method is for generate arff file for result. The label of this result file is predicted wih clami or other version that come though the parameter. To use this method, call like follow: GenerateFinalWithPrediction newFile = new GenerateFinalWithPrediction(filePath); newFile.generateResult("CLA", instances, percentileCutoff, positiveLabel);
      Parameters:
      version - String value of version (ex. "CLA" or "CLAMI" ...)
      instances -
      percentileCutoff -
      positiveLabel -
    • extractOnlyFileName

      public java.lang.String extractOnlyFileName​(java.lang.String file)
      To return only the file name
      Parameters:
      file -
      Returns: