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.Instances clustering​(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel)
    Cluster with percentileCutoff.
    void getResult​(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, boolean experimental, java.lang.String filePath)
    Get ACL result
    void getResult​(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, java.lang.String filePath)
    Get ACL result
    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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
      Specified by:
      getResult in interface ICLA
      Parameters:
      instances -
      percentileCutoff - ; cutoff percentile for cluster
      positiveLabel - ; string value of positive label
      supress - detailed prediction results
      filePath - ; string value of file name
    • 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:
      getResult in interface ICLA
      Parameters:
      instances -
      percentileCutoff - ; cutoff percentile for cluster
      positiveLabel - ; string value of positive label
      supress - detailed prediction results
      experimental - ; boolean value whether experimental or not
      filePath - ; 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:
      clustering in interface ICLA
      Parameters:
      instances -
      percentileCutoff - ; cutoff percentile for cluster
      positiveLabel - ; 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:
      printResult in interface ICLA
      Parameters:
      instances -
      experimental - ; boolean value whether experimental or not
      filePath - ; string value of file name
      supress - detailed prediction results
      positiveLabel - ; string value of positive label