23
Column Filter
Generator
Some nodes are able to create a Filter Columns node where the
columns selected are determined based upon the node’s
computational results. These include Correlations, Linear
Regression, and Regression Tree.
The node supports this functionality by implementing the
ColumnFilterGenerator interface. This interface has a single
method:
public String[] getFilterColumnsToExclude()
This method returns an array of the columns that the filter should
exclude. Useful helper tools are available in the
ColumnFilterTools
class. In particular, this class provides support for launching the
standard Column Filter Specification dialog.
PMML Generator The model nodes built into Spotfire Miner are all able to create a
Predictive Model Markup Language (PMML) description of their
model. PMML is an XML standard for describing data mining
models. For models such as Principal Components that don’t have
a definition in PMML, an alternate XML description is produced.
A node indicates that it supports PMML generation by implementing
the
PMMLGenerator interface. This interface has a single method:
void writePMML(FileOutputStream str)
The PMML generation in Spotfire Miner is typically performed by
taking the XML representation of the model and transforming it
using XSL. This is done using the
applyXSLTransform() method in
XMLTree.
Predictable Node
Model
Model nodes such as Linear Regression can generate a Predict
node that can get predicted values for new data. These nodes extend
PredictableNodeModel. An object of this type can be used in the
constructor for a Predict node.
Currently, the Predict node classes have a lot of knowledge in their
methods regarding how to predict for the various kinds of models. As
this information is in the Predict node rather than the specific
model’s classes, it isn’t possibly to add a new model without adding
new code to the
PredictEngineNode and PredictNodeModel. In the
future we may change these methods to use reflection and invoke
code in the specific model classes.
Comentarios a estos manuales