Package net.lifove.clami
Class CLA
java.lang.Object
net.lifove.clami.CLA
- All Implemented Interfaces:
ICLA
- Direct Known Subclasses:
CLAPlus
public class CLA extends java.lang.Object implements ICLA
This class run for CLA.
-
Constructor Summary
Constructors Constructor Description CLA() -
Method Summary
Modifier and Type Method Description weka.core.Instancesclustering(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel)Cluster with percentileCutoff.static java.util.ArrayList<java.lang.String>getLabelResult()Return predicted label ArrayListvoidgetResult(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, boolean experimental, java.lang.String filePath)Get CLA resultvoidgetResult(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, java.lang.String filePath)Get CLA resultvoidprintResult(weka.core.Instances instances, boolean experimental, java.lang.String filePath, boolean suppress, java.lang.String positiveLabel)Calculate the final result and print the prediction result performance in terms of TP, TN, FP, FN, precision, recall, and f1.weka.core.InstancesremoveNoiseMetrics(weka.core.Instances instances)
-
Constructor Details
-
CLA
public CLA()
-
-
Method Details
-
getResult
public void getResult(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, java.lang.String filePath)Get CLA result -
getResult
public void getResult(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, boolean experimental, java.lang.String filePath)Get CLA result- Specified by:
getResultin interfaceICLA- Parameters:
instances-percentileCutoff- ; cutoff percentile for clusterpositiveLabel- ; string value of positive labelsuppress- detailed prediction resultsexperimental- ; boolean value whether experimental or notfilePath- ; string value of file name
-
removeNoiseMetrics
public weka.core.Instances removeNoiseMetrics(weka.core.Instances instances) -
clustering
public weka.core.Instances clustering(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel)Cluster with percentileCutoff. Set class value to positive if K is higher than cutoff of cluster.- Specified by:
clusteringin interfaceICLA- Parameters:
instances-percentileCutoff- ; cutoff percentile for clusterpositiveLabel- ; string value of positive label
-
printResult
public void printResult(weka.core.Instances instances, boolean experimental, java.lang.String filePath, boolean suppress, java.lang.String positiveLabel)Calculate the final result and print the prediction result performance in terms of TP, TN, FP, FN, precision, recall, and f1.- Specified by:
printResultin interfaceICLA- Parameters:
instances-experimental- ; boolean value whether experimental or notfilePath- ; string value of file namesuppress- detailed prediction resultspositiveLabel- ; string value of positive label
-
getLabelResult
public static java.util.ArrayList<java.lang.String> getLabelResult()Return predicted label ArrayList- Returns:
-