public abstract class AbstractPMMLProducerHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PMML_VERSION
PMML version that the jaxbbindings were created from
|
Constructor and Description |
---|
AbstractPMMLProducerHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addDataDictionary(Instances trainHeader,
PMML pmml)
Adds a data dictionary to the supplied PMML object.
|
static java.lang.String[] |
getNameAndValueFromUnsupervisedNominalToBinaryDerivedAttribute(Instances train,
Attribute derived)
Extracts the original attribute name and value from the name of a binary
indicator attribute created by unsupervised NominalToBinary.
|
static OPTYPE |
getOPTYPE(int wekaType)
Returns an OPTYPE for a weka attribute type.
|
static PMML |
initPMML()
Initializes a PMML object with header information.
|
public static final java.lang.String PMML_VERSION
public static PMML initPMML()
public static void addDataDictionary(Instances trainHeader, PMML pmml)
trainHeader
- the training data header - i.e. the header of the data
that enters the buildClassifier() method of the model in questionpmml
- the PMML object to add the data dictionary topublic static OPTYPE getOPTYPE(int wekaType)
wekaType
- the type of the weka attributepublic static java.lang.String[] getNameAndValueFromUnsupervisedNominalToBinaryDerivedAttribute(Instances train, Attribute derived)
train
- the original, unfiltered training headerderived
- the derived attribute from which to extract the original
name and value from the name created by NominalToBinary.