Class CLABI

java.lang.Object
net.lifove.clami.CLABI
All Implemented Interfaces:
ICLA, ICLAMI
Direct Known Subclasses:
CLABIPlus

public class CLABI
extends java.lang.Object
implements ICLAMI
This class run for CLABI.
  • Method Summary

    Modifier and Type Method Description
    weka.core.Instances clustering​(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel)
    To do clustering
    void getCLABITrainingSet​(java.lang.Object[] keys, weka.core.Instances instances, java.lang.String positiveLabel, double percentileCutoff)
    To do clustering
    void getCLAMITrainingSet​(java.lang.Object[] keys, weka.core.Instances instances, java.lang.String positiveLabel, double percentileCutoff)
    To do clustering
    static void getLabeling​(weka.core.Instances instances, java.lang.String positiveLabel)
    Get Final TrainingModel
    void getPredictedLabels​(boolean suppress, weka.core.Instances instances)
    Get Final predicted labels
    void getProbabiltyOfIdx()
    Get predicted index and the probability of it
    void getResult​(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, boolean experimental, java.lang.String filePath)
    Get CLABI result
    void getResult​(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, java.lang.String filePath)
    Get CLABI result
    void printResult​(weka.core.Instances instances, boolean experimental, java.lang.String filePath, boolean suppress, java.lang.String positiveLabel)
    Get the result printed

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getResult

      public void getResult​(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, java.lang.String filePath)
      Get CLABI result
      Specified by:
      getResult in interface ICLA
      Parameters:
      instances -
      percentileCutoff - cutoff percentile for top and bottom clusters
      positiveLabel - positive label string value
      suppress - detailed prediction results
      filePath - : name of the running file
    • getResult

      public void getResult​(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, boolean experimental, java.lang.String filePath)
      Get CLABI result
      Specified by:
      getResult in interface ICLA
      Parameters:
      instances -
      percentileCutoff - cutoff percentile for top and bottom clusters
      positiveLabel - positive label string value
      suppress - detailed prediction results
      filePath - : name of the running file
    • clustering

      public weka.core.Instances clustering​(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel)
      To do clustering
      Specified by:
      clustering in interface ICLA
      Parameters:
      instances -
      percentileCutoff - cutoff percentile for top and bottom clusters
      positiveLabel - positive label string value
    • getCLAMITrainingSet

      public void getCLAMITrainingSet​(java.lang.Object[] keys, weka.core.Instances instances, java.lang.String positiveLabel, double percentileCutoff)
      To do clustering
      Specified by:
      getCLAMITrainingSet in interface ICLAMI
      Parameters:
      instances -
      percentileCutoff - cutoff percentile for top and bottom clusters
      positiveLabel - positive label string value
    • getCLABITrainingSet

      public void getCLABITrainingSet​(java.lang.Object[] keys, weka.core.Instances instances, java.lang.String positiveLabel, double percentileCutoff)
      To do clustering
      Parameters:
      instances -
      percentileCutoff - cutoff percentile for top and bottom clusters
      positiveLabel - positive label string value
    • getProbabiltyOfIdx

      public void getProbabiltyOfIdx()
      Get predicted index and the probability of it
    • getLabeling

      public static void getLabeling​(weka.core.Instances instances, java.lang.String positiveLabel)
      Get Final TrainingModel
      Parameters:
      instances -
      positiveLabel -
    • getPredictedLabels

      public void getPredictedLabels​(boolean suppress, weka.core.Instances instances)
      Get Final predicted labels
      Specified by:
      getPredictedLabels in interface ICLAMI
      Parameters:
      suppress -
      get - final labeling
    • printResult

      public void printResult​(weka.core.Instances instances, boolean experimental, java.lang.String filePath, boolean suppress, java.lang.String positiveLabel)
      Get the result printed
      Specified by:
      printResult in interface ICLA
      Parameters:
      instances -
      isExperimental - : to check if experiment option is on
      filePath - : name of the running file
      suppress - detailed prediction results
      positiveLabel - positive label string value