org.knime.base.node.preproc.autobinner.pmml
Class PMMLDiscretize
java.lang.Object
org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretize
public final class PMMLDiscretize
- extends Object
Encapsulates a DiscretizeBin in PMML.
- Author:
- Heiko Hofer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PMMLDiscretize
public PMMLDiscretize(String field,
List<PMMLDiscretizeBin> bins)
- Parameters:
field - the column that is discretizedbins - the bins
PMMLDiscretize
public PMMLDiscretize(String field,
String mapMissingTo,
String defaultValue,
String dataType,
List<PMMLDiscretizeBin> bins)
- Parameters:
field - the column that is discretizedmapMissingTo - value of output when input is the missing valuedefaultValue - value of output when input does not match any intervaldataType - data typebins - the bins
getField
public String getField()
- Returns:
- the field
getMapMissingTo
public String getMapMissingTo()
- Returns:
- the mapMissingTo
getDefaultValue
public String getDefaultValue()
- Returns:
- the defaultValue
getDataType
public String getDataType()
- Returns:
- the dataType
getBins
public List<PMMLDiscretizeBin> getBins()
- Returns:
- the bins
writePMML
void writePMML(TransformerHandler handler)
throws SAXException
- Writes the PMML to the given handler.
- Parameters:
handler - the transformation handler
- Throws:
SAXException - if anything goes wrong while serializing the model
Copyright, 2003 - 2012. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
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.