Package net.lifove.clami
Class ACL
java.lang.Object
net.lifove.clami.ACL
- All Implemented Interfaces:
ICLA
public class ACL extends java.lang.Object implements ICLA
This class run for ACL.
-
Constructor Summary
Constructors Constructor Description ACL() -
Method Summary
Modifier and Type Method Description weka.core.Instancesclustering(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel)Cluster with percentileCutoff.voidgetResult(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, boolean experimental, java.lang.String filePath)Get ACL resultvoidgetResult(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, java.lang.String filePath)Get ACL 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.
-
Constructor Details
-
ACL
public ACL()
-
-
Method Details
-
getResult
public void getResult(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, java.lang.String filePath)Get ACL result -
getResult
public void getResult(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, boolean experimental, java.lang.String filePath)Get ACL result- Specified by:
getResultin interfaceICLA- Parameters:
instances-percentileCutoff- ; cutoff percentile for clusterpositiveLabel- ; string value of positive labelsupress- detailed prediction resultsexperimental- ; boolean value whether experimental or notfilePath- ; string value of file name
-
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 namesupress- detailed prediction resultspositiveLabel- ; string value of positive label
-