Package net.lifove.clami
Class CLAMI
java.lang.Object
net.lifove.clami.CLAMI
- 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.Instancesclustering(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel)To do clusteringvoidgetCLAMITrainingSet(java.lang.Object[] keys, weka.core.Instances instances, java.lang.String positiveLabel, double percentileCutoff)Get Training and Test Set after metric and instance selectionstatic java.util.ArrayList<java.lang.String>getLabelResult()Return predicted label ArrayListvoidgetPredictedLabels(boolean suppress, weka.core.Instances instances)Get LabelingvoidgetResult(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, boolean experimental, java.lang.String filePath)Get CLAMI resultvoidgetResult(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel, boolean suppress, java.lang.String filePath)Get CLAMI resultvoidprintResult(weka.core.Instances instances, boolean experimental, java.lang.String filePath, boolean suppress, java.lang.String positiveLabel)Get the result printed
-
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 -
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 -
clustering
public weka.core.Instances clustering(weka.core.Instances instances, double percentileCutoff, java.lang.String positiveLabel)To do clustering- Specified by:
clusteringin interfaceICLA- Parameters:
instances-percentileCutoff- cutoff percentile for top and bottom clusterspositiveLabel- 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:
getCLAMITrainingSetin interfaceICLAMI- Parameters:
keys- : MVSinstances-percentileCutoff- cutoff percentile for top and bottom clusterspositiveLabel- positive label string value
-
getPredictedLabels
public void getPredictedLabels(boolean suppress, weka.core.Instances instances)Get Labeling- Specified by:
getPredictedLabelsin interfaceICLAMI- 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:
printResultin interfaceICLA- Parameters:
instances-isExperimental- : to check if experiment option is onfilePath- : name of the running filesuppress- detailed prediction resultspositiveLabel- positive label string value
-
getLabelResult
public static java.util.ArrayList<java.lang.String> getLabelResult()Return predicted label ArrayList- Returns:
-