Example usage for weka.gui.visualize ThresholdVisualizePanel setUpComboBoxes

List of usage examples for weka.gui.visualize ThresholdVisualizePanel setUpComboBoxes

Introduction

In this page you can find the example usage for weka.gui.visualize ThresholdVisualizePanel setUpComboBoxes.

Prototype

@Override
public void setUpComboBoxes(Instances inst) 

Source Link

Document

This overloads VisualizePanel's setUpComboBoxes to add ActionListeners to watch for when the X/Y Axis comboboxes are changed.

Usage

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;
}