use of org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretizePreprocPortObject in project knime-core by knime.
the class AutoBinnerLearnNodeModel method execute.
/**
* {@inheritDoc}
*/
@Override
protected PortObject[] execute(final PortObject[] inObjects, final ExecutionContext exec) throws Exception {
BufferedDataTable data = (BufferedDataTable) inObjects[0];
AutoBinner binner = new AutoBinner(m_settings);
BufferedDataTable inData = binner.calcDomainBoundsIfNeccessary(data, exec, Arrays.asList(m_settings.getTargetColumn()));
PMMLPreprocDiscretize op = binner.execute(inData, exec);
AutoBinnerApply applier = new AutoBinnerApply();
BufferedDataTable outData = applier.execute(op, inData, exec);
return new PortObject[] { outData, new PMMLDiscretizePreprocPortObject(op) };
}
use of org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretizePreprocPortObject in project knime-core by knime.
the class AutoBinnerLearnNodeModel method execute.
/**
* {@inheritDoc}
*/
@Override
protected PortObject[] execute(final PortObject[] inObjects, final ExecutionContext exec) throws Exception {
BufferedDataTable data = (BufferedDataTable) inObjects[0];
AutoBinner binner = new AutoBinner(m_settings);
BufferedDataTable inData = binner.calcDomainBoundsIfNeccessary(data, exec, Arrays.asList(m_settings.getTargetColumn()));
PMMLPreprocDiscretize op = binner.execute(inData, exec);
AutoBinnerApply applier = new AutoBinnerApply();
BufferedDataTable outData = applier.execute(op, inData, exec);
return new PortObject[] { outData, new PMMLDiscretizePreprocPortObject(op) };
}
use of org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretizePreprocPortObject in project knime-core by knime.
the class AutoBinnerLearnNodeModel method execute.
/**
* {@inheritDoc}
*/
@Override
protected PortObject[] execute(final PortObject[] inObjects, final ExecutionContext exec) throws Exception {
BufferedDataTable data = (BufferedDataTable) inObjects[0];
AutoBinner binner = new AutoBinner(m_settings, data.getDataTableSpec());
String[] included = m_settings.getFilterConfiguration().applyTo(data.getDataTableSpec()).getIncludes();
BufferedDataTable inData = binner.calcDomainBoundsIfNeccessary(data, exec, Arrays.asList(included));
PMMLPreprocDiscretize op = binner.execute(inData, exec);
AutoBinnerApply applier = new AutoBinnerApply();
BufferedDataTable outData = applier.execute(op, inData, exec);
return new PortObject[] { outData, new PMMLDiscretizePreprocPortObject(op) };
}
Aggregations