|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.port.pmml.PMMLPortObject
org.knime.base.node.mine.neural.mlp.PMMLNeuralNetworkPortObject
public class PMMLNeuralNetworkPortObject
A PMMLPortObject
responsible for transforming a MultiLayer Perceptron
(MLP) into a PMML file.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.knime.core.node.port.PortObject |
---|
PortObject.PortObjectSerializer<T extends PortObject> |
Field Summary | |
---|---|
static PortType |
TYPE
PMML Neural Network port type. |
Fields inherited from class org.knime.core.node.port.pmml.PMMLPortObject |
---|
CDATA, DATA_DICT, DATA_FIELD, PMML_V3_0, PMML_V3_1, PMML_V3_2, VALUE |
Constructor Summary | |
---|---|
PMMLNeuralNetworkPortObject()
Empty constructor. |
|
PMMLNeuralNetworkPortObject(PMMLPortObjectSpec spec,
MultiLayerPerceptron mlp)
Constructor. |
Method Summary | |
---|---|
protected void |
addInputLayer(TransformerHandler handler,
MultiLayerPerceptron mlp)
Writes the PMML input layer of the MLP. |
protected void |
addLayer(TransformerHandler handler,
MultiLayerPerceptron mlp,
int layer)
Writes a layer of the MLP. |
protected void |
addOutputLayer(TransformerHandler handler,
MultiLayerPerceptron mlp)
Writes the PMML output layer of the MLP. |
protected void |
addTargets(TransformerHandler handler,
MultiLayerPerceptron mlp)
Writes the PMML target attributes. |
MultiLayerPerceptron |
getMLP()
|
String |
getSummary()
Get a short summary of this PortObject . |
void |
loadFrom(PMMLPortObjectSpec spec,
InputStream in,
String version)
|
protected void |
writePMMLModel(TransformerHandler handler)
|
Methods inherited from class org.knime.core.node.port.pmml.PMMLPortObject |
---|
addPMMLContentHandler, getLocalSchemaLocation, getModelType, getPMMLContentHandler, getPortObjectSerializer, getSpec, getViews, save |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PortType TYPE
Constructor Detail |
---|
public PMMLNeuralNetworkPortObject()
public PMMLNeuralNetworkPortObject(PMMLPortObjectSpec spec, MultiLayerPerceptron mlp)
spec
- the PMMLPortObjectSpec
of the training table.mlp
- the MultiLayerPerceptron
from KNIME to be
written.Method Detail |
---|
protected void writePMMLModel(TransformerHandler handler) throws SAXException
writePMMLModel
in class PMMLPortObject
handler
- the handler responsible for writing the PMML
SAXException
- if something goes wrong during writing the PMMLprotected void addTargets(TransformerHandler handler, MultiLayerPerceptron mlp) throws SAXException
handler
- to write to.mlp
- the underlying MultiLayerPerceptron
.
SAXException
- if something goes wrong.protected void addInputLayer(TransformerHandler handler, MultiLayerPerceptron mlp) throws SAXException
handler
- to write to.mlp
- the underlying MultiLayerPerceptron
.
SAXException
- if something goes wrong.protected void addLayer(TransformerHandler handler, MultiLayerPerceptron mlp, int layer) throws SAXException
handler
- to write to.mlp
- the underlying MultiLayerPerceptron
.layer
- the number of the current layer.
SAXException
- if something goes wrong.protected void addOutputLayer(TransformerHandler handler, MultiLayerPerceptron mlp) throws SAXException
handler
- to write to.mlp
- the underlying MultiLayerPerceptron
.
SAXException
- if something goes wrong.public void loadFrom(PMMLPortObjectSpec spec, InputStream in, String version) throws ParserConfigurationException, SAXException, IOException
loadFrom
in class PMMLPortObject
spec
- the referring spec of this objectin
- the input stream to write toversion
- the version (3.0 - 3.1)
ParserConfigurationException
- if the parser cannot be instantiated
SAXException
- if something goes wrong during writing
IOException
- if the file cannot be foundpublic MultiLayerPerceptron getMLP()
MultiLayerPerceptron
.public String getSummary()
PortObject
.
The return value will be shown in a node port's tooltip, for instance.
getSummary
in interface PortObject
getSummary
in class PMMLPortObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |