public abstract class AbstractPMMLRegressionModel extends PMMLModel
Modifier and Type | Class and Description |
---|---|
static class |
AbstractPMMLRegressionModel.CategoricalPredictor |
static class |
AbstractPMMLRegressionModel.ModelType
The possible values of the ModelType attribute of a PMML regressionModel.
|
static class |
AbstractPMMLRegressionModel.NormalizationMethod
The normalization methods used.
|
static class |
AbstractPMMLRegressionModel.NumericPredictor
Capture information about numeric predictor values.
|
protected static class |
AbstractPMMLRegressionModel.RegressionTable |
PMMLModel.MiningFunction
Constructor and Description |
---|
AbstractPMMLRegressionModel() |
AbstractPMMLRegressionModel(PMMLModelSpec objectSpec) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
buildModelElement(Element element)
Subclasses must implement this method to fill-in the contents
of the model element.
|
protected String |
getModelElementName()
Return the element name of the primary model element associated with
this PMML
|
String |
getModelName() |
AbstractPMMLRegressionModel.NormalizationMethod |
getNormalizationMethod() |
boolean |
isScorable() |
static double |
logistic(double value)
An implementation of the logit model's normalization function.
|
protected void |
parseModelElement(Element element)
Parse the given model element into the respective model object.
|
void |
setModelName(String modelName) |
void |
setNormalizationMethod(AbstractPMMLRegressionModel.NormalizationMethod normalizationMethod) |
void |
setScorable(boolean b)
Whether a consumer can use the model to make predictions
(set to false to indicate the model is for information purposes only.)
|
findModelElement, getAnnotationText, getModelExplanation, getModelSpec, getVersion, parse, setAnnotationText, setModelExplanation, setVersion, toPMML
public AbstractPMMLRegressionModel(PMMLModelSpec objectSpec)
public AbstractPMMLRegressionModel()
public static double logistic(double value)
value
- the real number to normalize.public void setScorable(boolean b)
b
- public boolean isScorable()
public void setNormalizationMethod(AbstractPMMLRegressionModel.NormalizationMethod normalizationMethod)
normalizationMethod
- the normalization method to use to transform the linear result to a predictionpublic AbstractPMMLRegressionModel.NormalizationMethod getNormalizationMethod()
public void setModelName(String modelName)
modelName
- the desired "modelName" PMML attributepublic String getModelName()
protected String getModelElementName()
PMMLModel
getModelElementName
in class PMMLModel
protected abstract void buildModelElement(Element element)
PMMLModel
buildModelElement
in class PMMLModel
element
- the model elementprotected void parseModelElement(Element element)
parseModelElement
in class PMMLModel
element
- root element of model objectUnsupportedPPMMLException
- if the normalization method is not represented in the NormalizationMethod enum.Copyright © 2016 Actian Corporation. All rights reserved.