本文整理汇总了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);
}
}
示例2: getProcessingHistory
import com.rapidminer.operator.ports.ProcessingStep; //导入依赖的package包/类
@Override
public List<ProcessingStep> getProcessingHistory() {
if (processingHistory == null) {
processingHistory = new LinkedList<>();
}
return processingHistory;
}
示例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);
}
}
示例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;
}
示例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;
}
示例6: getProcessingHistory
import com.rapidminer.operator.ports.ProcessingStep; //导入依赖的package包/类
@Override
public List<ProcessingStep> getProcessingHistory() {
if (processingHistory == null)
processingHistory = new LinkedList<ProcessingStep>();
return processingHistory;
}
示例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();
示例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();