Class CLAMI

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

public class CLAMI
extends java.lang.Object
implements ICLAMI
This class run for CLAMI.
  • 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 getCLAMITrainingSet​(java.lang.Object[] keys, weka.core.Instances instances, java.lang.String positiveLabel, double percentileCutoff)
    Get Training and Test Set after metric and instance selection
    static java.util.ArrayList<java.lang.String> getLabelResult()
    Return predicted label ArrayList
    void getPredictedLabels​(boolean suppress, weka.core.Instances instances)
    Get Labeling
    void getResult​(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, boolean experimental, java.lang.String filePath)
    Get CLAMI result
    void getResult​(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, java.lang.String filePath)
    Get CLAMI 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 CLAMI 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 CLAMI 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)
      Get Training and Test Set after metric and instance selection
      Specified by:
      getCLAMITrainingSet in interface ICLAMI
      Parameters:
      keys - : MVS
      instances -
      percentileCutoff - cutoff percentile for top and bottom clusters
      positiveLabel - positive label string value
    • getPredictedLabels

      public void getPredictedLabels​(boolean suppress, weka.core.Instances instances)
      Get Labeling
      Specified by:
      getPredictedLabels in interface ICLAMI
      Parameters:
      instances -
      suppress -
    • 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
    • getLabelResult

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