Search in sources :

Example 1 with PMMLDiscretizePreprocPortObjectSpec

use of org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretizePreprocPortObjectSpec in project knime-core by knime.

the class AutoBinner method init.

/**
 * Initialize instance and check if settings are consistent.
 */
private void init(final DataTableSpec inSpec) throws InvalidSettingsException {
    PMMLPreprocDiscretize op = createDisretizeOp(null);
    AutoBinnerApply applier = new AutoBinnerApply();
    m_tableOutSpec = applier.getOutputSpec(op, inSpec);
    m_pmmlOutSpec = new PMMLDiscretizePreprocPortObjectSpec(op);
}
Also used : PMMLDiscretizePreprocPortObjectSpec(org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretizePreprocPortObjectSpec) AutoBinnerApply(org.knime.base.node.preproc.autobinner.apply.AutoBinnerApply) PMMLPreprocDiscretize(org.knime.base.node.preproc.autobinner.pmml.PMMLPreprocDiscretize)

Example 2 with PMMLDiscretizePreprocPortObjectSpec

use of org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretizePreprocPortObjectSpec in project knime-core by knime.

the class AutoBinner method init.

/**
 * Initialize instance and check if settings are consistent.
 */
private void init(final DataTableSpec inSpec) throws InvalidSettingsException {
    PMMLPreprocDiscretize op = createDisretizeOp(null);
    AutoBinnerApply applier = new AutoBinnerApply();
    m_tableOutSpec = applier.getOutputSpec(op, inSpec);
    m_pmmlOutSpec = new PMMLDiscretizePreprocPortObjectSpec(op);
}
Also used : PMMLDiscretizePreprocPortObjectSpec(org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretizePreprocPortObjectSpec) AutoBinnerApply(org.knime.base.node.preproc.autobinner.apply.AutoBinnerApply) PMMLPreprocDiscretize(org.knime.base.node.preproc.autobinner.pmml.PMMLPreprocDiscretize)

Example 3 with PMMLDiscretizePreprocPortObjectSpec

use of org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretizePreprocPortObjectSpec in project knime-core by knime.

the class AutoBinner method init.

/**
 * Initialize instance and check if settings are consistent.
 */
private void init(final DataTableSpec inSpec) throws InvalidSettingsException {
    PMMLPreprocDiscretize op = createDisretizeOp(null);
    AutoBinnerApply applier = new AutoBinnerApply();
    m_tableOutSpec = applier.getOutputSpec(op, inSpec);
    m_pmmlOutSpec = new PMMLDiscretizePreprocPortObjectSpec(op);
}
Also used : PMMLDiscretizePreprocPortObjectSpec(org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretizePreprocPortObjectSpec) AutoBinnerApply(org.knime.base.node.preproc.autobinner.apply.AutoBinnerApply) PMMLPreprocDiscretize(org.knime.base.node.preproc.autobinner.pmml.PMMLPreprocDiscretize)

Example 4 with PMMLDiscretizePreprocPortObjectSpec

use of org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretizePreprocPortObjectSpec in project knime-core by knime.

the class AutoBinnerApplyNodeModel method configure.

/**
 * {@inheritDoc}
 */
@Override
protected PortObjectSpec[] configure(final PortObjectSpec[] inSpecs) throws InvalidSettingsException {
    PMMLDiscretizePreprocPortObjectSpec pmmlPortSpec = (PMMLDiscretizePreprocPortObjectSpec) inSpecs[0];
    PMMLPreprocDiscretize op = pmmlPortSpec.getOperation();
    DataTableSpec dataSpec = (DataTableSpec) inSpecs[1];
    AutoBinnerApply applier = new AutoBinnerApply();
    return new PortObjectSpec[] { applier.getOutputSpec(op, dataSpec) };
}
Also used : PMMLDiscretizePreprocPortObjectSpec(org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretizePreprocPortObjectSpec) DataTableSpec(org.knime.core.data.DataTableSpec) PMMLDiscretizePreprocPortObjectSpec(org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretizePreprocPortObjectSpec) PortObjectSpec(org.knime.core.node.port.PortObjectSpec) PMMLPreprocDiscretize(org.knime.base.node.preproc.autobinner.pmml.PMMLPreprocDiscretize)

Aggregations

PMMLDiscretizePreprocPortObjectSpec (org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretizePreprocPortObjectSpec)4 PMMLPreprocDiscretize (org.knime.base.node.preproc.autobinner.pmml.PMMLPreprocDiscretize)4 AutoBinnerApply (org.knime.base.node.preproc.autobinner.apply.AutoBinnerApply)3 DataTableSpec (org.knime.core.data.DataTableSpec)1 PortObjectSpec (org.knime.core.node.port.PortObjectSpec)1