public class AutoBinner extends Object
Constructor and Description |
---|
AutoBinner(AutoBinnerLearnSettings settings) |
Modifier and Type | Method and Description |
---|---|
BufferedDataTable |
calcDomainBoundsIfNeccessary(BufferedDataTable data,
ExecutionContext exec,
List<String> recalcValuesFor)
Determines the per column min/max values of the given data if not already present in the domain.
|
PMMLPreprocDiscretize |
execute(BufferedDataTable data,
ExecutionContext exec)
Determine bins.
|
PortObjectSpec[] |
getOutputSpec(DataTableSpec spec) |
static void |
validateSettings(AutoBinnerLearnSettings settings)
Validates the settings in the passed
AutoBinnerLearnSettings object. |
public AutoBinner(AutoBinnerLearnSettings settings) throws InvalidSettingsException
settings
- The settings object.InvalidSettingsException
- when settings are not consistentpublic PMMLPreprocDiscretize execute(BufferedDataTable data, ExecutionContext exec) throws Exception
data
- the input dataexec
- the execution contextException
- ...public BufferedDataTable calcDomainBoundsIfNeccessary(BufferedDataTable data, ExecutionContext exec, List<String> recalcValuesFor) throws InvalidSettingsException, CanceledExecutionException
data
- the dataexec
- the execution contextrecalcValuesFor
- The columnsInvalidSettingsException
- ...CanceledExecutionException
- ...public PortObjectSpec[] getOutputSpec(DataTableSpec spec) throws InvalidSettingsException
spec
- The DataTableSpec
of the input table.InvalidSettingsException
- If settings and spec given in the constructor are invalid.public static void validateSettings(AutoBinnerLearnSettings settings) throws InvalidSettingsException
AutoBinnerLearnSettings
object. The specified settings is
checked for completeness and consistency.settings
- The settings to validate.InvalidSettingsException
- If the validation of the settings failed.
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.