Package net.lifove.clami.util
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.StringextractOnlyFileName(java.lang.String file)To return only the file namevoidgenerateResult(java.lang.String version, weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel)This method is for generate arff file for result.
-
Constructor Details
-
GenerateFinalWithPrediction
public GenerateFinalWithPrediction(java.lang.String filePath)
-
-
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:
-