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


Java ProcessingStep类代码示例

本文整理汇总了Java中com.rapidminer.operator.ports.ProcessingStep的典型用法代码示例。如果您正苦于以下问题:Java ProcessingStep类的具体用法?Java ProcessingStep怎么用?Java ProcessingStep使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ProcessingStep类属于com.rapidminer.operator.ports包,在下文中一共展示了ProcessingStep类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: appendOperatorToHistory

import com.rapidminer.operator.ports.ProcessingStep; //导入依赖的package包/类
@Override
public void appendOperatorToHistory(Operator operator, OutputPort port) {
	if (processingHistory == null) {
		processingHistory = new LinkedList<>();
		if (operator.getProcess() != null) {
			processingHistory.add(new ProcessingStep(operator, port));
		}
	}
	ProcessingStep newStep = new ProcessingStep(operator, port);
	if (operator.getProcess() != null && (processingHistory.isEmpty() || !processingHistory.getLast().equals(newStep))) {
		processingHistory.add(newStep);
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:14,代码来源:AbstractIOObject.java

示例2: getProcessingHistory

import com.rapidminer.operator.ports.ProcessingStep; //导入依赖的package包/类
@Override
public List<ProcessingStep> getProcessingHistory() {
	if (processingHistory == null) {
		processingHistory = new LinkedList<>();
	}
	return processingHistory;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:8,代码来源:AbstractIOObject.java

示例3: appendOperatorToHistory

import com.rapidminer.operator.ports.ProcessingStep; //导入依赖的package包/类
@Override
public void appendOperatorToHistory(Operator operator, OutputPort port) {
	if (processingHistory == null) {
		processingHistory = new LinkedList<ProcessingStep>();
	if (operator.getProcess() != null)
		processingHistory.add(new ProcessingStep(operator, port));
}
	ProcessingStep newStep = new ProcessingStep(operator, port);
	if (operator.getProcess() != null && (processingHistory.isEmpty() || !processingHistory.getLast().equals(newStep))) {
		processingHistory.add(newStep);
	}
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:13,代码来源:AbstractIOObject.java

示例4: getPlotterSettingsFromHistory

import com.rapidminer.operator.ports.ProcessingStep; //导入依赖的package包/类
public static PlotterConfigurationModel getPlotterSettingsFromHistory(IOObject object, DataTable dataTable, LinkedHashMap<String, Class<? extends Plotter>> plotterSelections) {
	List<ProcessingStep> steps = object.getProcessingHistory();
	ListIterator<ProcessingStep> iterator = steps.listIterator(steps.size());
	PlotterConfigurationModel configurationModel = null;
	boolean isFirst = true;
	while (iterator.hasPrevious()) {
		ProcessingStep step = iterator.previous();
		PlotterConfigurationSettings settings = settingsHistory.get(step);
		if (settings != null) {
			// if it's not the last operator in history: Clone and register for last process step
			if (!isFirst) {
				settings = settings.clone();
				settingsHistory.put(steps.get(steps.size() - 1), settings);
			}
			configurationModel = new PlotterConfigurationModel(settings, plotterSelections, dataTable);
			// then break: Use the last found known step
			break;
		}
		isFirst = false;
	}
	// if we didn't find anything: Create new settings and add to history
	if (configurationModel == null) {
		configurationModel = new PlotterConfigurationModel(plotterSelections, dataTable);
		if (!steps.isEmpty())
			settingsHistory.put(steps.get(steps.size() - 1), configurationModel.getPlotterSettings());
	}
	return configurationModel;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:29,代码来源:PlotterSettingsHistory.java

示例5: getPlotterSettingsFromHistory

import com.rapidminer.operator.ports.ProcessingStep; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public static PlotterConfigurationModel getPlotterSettingsFromHistory(IOObject object, DataTable dataTable,
		LinkedHashMap<String, Class<? extends Plotter>> plotterSelections) {
	List<ProcessingStep> steps = object.getProcessingHistory();
	ListIterator<ProcessingStep> iterator = steps.listIterator(steps.size());
	PlotterConfigurationModel configurationModel = null;
	boolean isFirst = true;
	while (iterator.hasPrevious()) {
		ProcessingStep step = iterator.previous();
		PlotterConfigurationSettings settings = settingsHistory.get(step);
		if (settings != null) {
			// if it's not the last operator in history: Clone and register for last process
			// step
			if (!isFirst) {
				settings = settings.clone();
				settingsHistory.put(steps.get(steps.size() - 1), settings);
			}
			configurationModel = new PlotterConfigurationModel(settings, plotterSelections, dataTable);

			if (object.getUserData(PlotterConfigurationSettings.IOOBJECT_USER_DATA_SETTINGS_KEY) != null) { // check
																											// for
																											// user
																											// specified
																											// plotter
																											// settings
				configurationModel.addParameters((HashMap<String, String>) object
						.getUserData(PlotterConfigurationSettings.IOOBJECT_USER_DATA_SETTINGS_KEY));
			}
			if (object.getUserData(PlotterConfigurationSettings.IOOBJECT_USER_DATA_PLOTTER_KEY) != null) { // check
																											// for
																											// user
																											// specified
																											// plotter
				String p = (String) object.getUserData(PlotterConfigurationSettings.IOOBJECT_USER_DATA_PLOTTER_KEY);
				configurationModel.setPlotter(p);
			}

			// then break: Use the last found known step
			break;
		}
		isFirst = false;
	}
	// if we didn't find anything: Create new settings (with default or user specified values)
	// and add them to history
	if (configurationModel == null) {

		configurationModel = new PlotterConfigurationModel(plotterSelections, dataTable);
		HeuristicPlotterConfigurator heuristicConfigurator = new HeuristicPlotterConfigurator(configurationModel,
				dataTable);

		if (object.getUserData(PlotterConfigurationSettings.IOOBJECT_USER_DATA_SETTINGS_KEY) != null) { // check
																										// for
																										// user
																										// specified
																										// plotter
																										// settings
			configurationModel.addParameters((HashMap<String, String>) object
					.getUserData(PlotterConfigurationSettings.IOOBJECT_USER_DATA_SETTINGS_KEY));
		} else {
			configurationModel.setParameters(heuristicConfigurator.getDefaultSelection(configurationModel
					.getParameterSettings()));
		}
		if (object.getUserData(PlotterConfigurationSettings.IOOBJECT_USER_DATA_PLOTTER_KEY) != null) { // check
																										// for
																										// a
																										// user
																										// specified
																										// plotter
			configurationModel.setPlotter((String) object
					.getUserData(PlotterConfigurationSettings.IOOBJECT_USER_DATA_PLOTTER_KEY));
		} else {
			configurationModel.setPlotter(heuristicConfigurator.getDefaultPlotter());
		}

		if (!steps.isEmpty()) {
			settingsHistory.put(steps.get(steps.size() - 1), configurationModel.getPlotterSettings());
		}
	}
	return configurationModel;
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:81,代码来源:PlotterSettingsHistory.java

示例6: getProcessingHistory

import com.rapidminer.operator.ports.ProcessingStep; //导入依赖的package包/类
@Override
public List<ProcessingStep> getProcessingHistory() {
	if (processingHistory == null)
		processingHistory = new LinkedList<ProcessingStep>();
	return processingHistory;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:7,代码来源:AbstractIOObject.java

示例7: getProcessingHistory

import com.rapidminer.operator.ports.ProcessingStep; //导入依赖的package包/类
/**
 * This method must return a list of each step of processing steps this IOObject has been made
 * including it's creating operator.
 */
public List<ProcessingStep> getProcessingHistory();
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:6,代码来源:IOObject.java

示例8: getProcessingHistory

import com.rapidminer.operator.ports.ProcessingStep; //导入依赖的package包/类
/**
 * This method must return a list of each step of processing steps this IOObject has
 * been made including it's creating operator.
 */
public List<ProcessingStep> getProcessingHistory();
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:6,代码来源:IOObject.java


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