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.Instances clustering​(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel)
    Cluster with percentileCutoff.
    static java.util.ArrayList<java.lang.String> getLabelResult()
    Return predicted label ArrayList
    void getResult​(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, boolean experimental, java.lang.String filePath)
    Get CLA result
    void getResult​(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, java.lang.String filePath)
    Get CLA 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.
    weka.core.Instances removeNoiseMetrics​(weka.core.Instances instances)  

    Methods inherited from class java.lang.Object

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

      public static java.util.ArrayList<java.lang.String> getLabelResult()
      Return predicted label ArrayList
      Returns: