本文整理汇总了Java中com.rapidminer.gui.viewer.ROCChartPlotter类的典型用法代码示例。如果您正苦于以下问题:Java ROCChartPlotter类的具体用法?Java ROCChartPlotter怎么用?Java ROCChartPlotter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ROCChartPlotter类属于com.rapidminer.gui.viewer包,在下文中一共展示了ROCChartPlotter类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getVisualizationComponent
import com.rapidminer.gui.viewer.ROCChartPlotter; //导入依赖的package包/类
@Override
public Component getVisualizationComponent(Object renderable, IOContainer ioContainer) {
ROCComparison model = (ROCComparison) renderable;
ROCChartPlotter plotter = new ROCChartPlotter();
Iterator<Map.Entry<String, List<ROCData>>> e = model.getRocData().entrySet().iterator();
while (e.hasNext()) {
Map.Entry<String, List<ROCData>> entry = e.next();
plotter.addROCData(entry.getKey(), entry.getValue());
}
JPanel panel = new JPanel(new BorderLayout());
JPanel innerPanel = new JPanel(new BorderLayout());
innerPanel.add(plotter);
innerPanel.setBorder(BorderFactory.createMatteBorder(10, 10, 5, 5, Colors.WHITE));
panel.add(innerPanel, BorderLayout.CENTER);
return panel;
}
示例2: createROCPlotDialog
import com.rapidminer.gui.viewer.ROCChartPlotter; //导入依赖的package包/类
/** Creates a dialog containing a plotter for a given list of ROC data points. */
public void createROCPlotDialog(ROCData data) {
ROCChartPlotter plotter = new ROCChartPlotter();
plotter.addROCData("ROC", data);
JDialog dialog = new JDialog();
dialog.setTitle("ROC Plot");
dialog.add(plotter);
dialog.setSize(500, 500);
dialog.setLocationRelativeTo(null);
dialog.setVisible(true);
}
示例3: createReportable
import com.rapidminer.gui.viewer.ROCChartPlotter; //导入依赖的package包/类
@Override
public Reportable createReportable(Object renderable, IOContainer ioContainer, int desiredWidth, int desiredHeight) {
ROCComparison model = (ROCComparison) renderable;
ROCChartPlotter plotter = new ROCChartPlotter();
Iterator<Map.Entry<String, List<ROCData>>> e = model.getRocData().entrySet().iterator();
while (e.hasNext()) {
Map.Entry<String, List<ROCData>> entry = e.next();
plotter.addROCData(entry.getKey(), entry.getValue());
}
return plotter;
}
示例4: createROCPlotDialog
import com.rapidminer.gui.viewer.ROCChartPlotter; //导入依赖的package包/类
/** Creates a dialog containing a plotter for a given list of ROC data points. */
public void createROCPlotDialog(ROCData data) {
ROCChartPlotter plotter = new ROCChartPlotter();
plotter.addROCData("ROC", data);
JDialog dialog = new JDialog();
dialog.setTitle("ROC Plot");
dialog.add(plotter);
dialog.setSize(500, 500);
dialog.setLocationRelativeTo(null);
dialog.setVisible(true);
}
示例5: createReportable
import com.rapidminer.gui.viewer.ROCChartPlotter; //导入依赖的package包/类
@Override
public Reportable createReportable(Object renderable, IOContainer ioContainer, int desiredWidth, int desiredHeight) {
ROCComparison model = (ROCComparison) renderable;
ROCChartPlotter plotter = new ROCChartPlotter();
Iterator<Map.Entry<String, List<ROCData>>> e = model.getRocData().entrySet().iterator();
while (e.hasNext()) {
Map.Entry<String, List<ROCData>> entry = e.next();
plotter.addROCData(entry.getKey(), entry.getValue());
}
return plotter;
}
示例6: getVisualizationComponent
import com.rapidminer.gui.viewer.ROCChartPlotter; //导入依赖的package包/类
@Override
public Component getVisualizationComponent(Object renderable, IOContainer ioContainer) {
ROCComparison model = (ROCComparison) renderable;
ROCChartPlotter plotter = new ROCChartPlotter();
Iterator<Map.Entry<String, List<ROCData>>> e = model.getRocData().entrySet().iterator();
while (e.hasNext()) {
Map.Entry<String, List<ROCData>> entry = e.next();
plotter.addROCData(entry.getKey(), entry.getValue());
}
return plotter;
}