List of usage examples for weka.gui.visualize ThresholdVisualizePanel setUpComboBoxes
@Override public void setUpComboBoxes(Instances inst)
From source file:meka.gui.explorer.classify.ShowPrecisionRecall.java
License:Open Source License
/** * Creates a panel displaying the ROC data. * * @param data the threshold curve data * @param title the title of the plot * @return the panel//from w ww. j a v a 2 s.c o m * @throws Exception if plot generation fails */ protected ThresholdVisualizePanel createPanel(Instances data, String title) throws Exception { ThresholdVisualizePanel result = super.createPanel(data, title); result.setROCString("PRC area: " + Utils.doubleToString(ThresholdCurve.getPRCArea(data), 3)); result.setUpComboBoxes(result.getInstances()); setComboBoxIndices(data, result); return result; }
From source file:meka.gui.explorer.classify.ShowROC.java
License:Open Source License
/** * Creates a panel displaying the ROC data. * * @param data the threshold curve data * @param title the title of the plot * @return the panel/*from w w w . java 2 s . co m*/ * @throws Exception if plot generation fails */ protected ThresholdVisualizePanel createPanel(Instances data, String title) throws Exception { ThresholdVisualizePanel result = super.createPanel(data, title); result.setROCString("AUC: " + Utils.doubleToString(ThresholdCurve.getROCArea(data), 3)); result.setUpComboBoxes(result.getInstances()); return result; }