当前位置: 首页>>代码示例>>Java>>正文


Java ROCChartPlotter类代码示例

本文整理汇总了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;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:18,代码来源:ROCComparisonRenderer.java

示例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);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:12,代码来源:ROCDataGenerator.java

示例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;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:12,代码来源:ROCComparisonRenderer.java

示例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);
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:12,代码来源:ROCDataGenerator.java

示例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;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:12,代码来源:ROCComparisonRenderer.java

示例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;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:12,代码来源:ROCComparisonRenderer.java


注:本文中的com.rapidminer.gui.viewer.ROCChartPlotter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。