public class PMMLRegressionClassificationModel extends AbstractPMMLRegressionModel
AbstractPMMLRegressionModel.CategoricalPredictor, AbstractPMMLRegressionModel.ModelType, AbstractPMMLRegressionModel.NormalizationMethod, AbstractPMMLRegressionModel.NumericPredictor, AbstractPMMLRegressionModel.RegressionTable
PMMLModel.MiningFunction
Modifier and Type | Field and Description |
---|---|
static String |
FUNCTION_NAME |
Constructor and Description |
---|
PMMLRegressionClassificationModel()
Create an empty model, to be filled in by the addCategory and addPredictor methods or by parse()
|
PMMLRegressionClassificationModel(Document document) |
PMMLRegressionClassificationModel(PMMLModelSpec objectSpec) |
Modifier and Type | Method and Description |
---|---|
void |
addCategoricalPredictor(String categoryName,
AbstractPMMLRegressionModel.CategoricalPredictor predictor)
Adds a categorical predictor to the sub-model that predicts membership in a given category.
|
void |
addCategory(String categoryName)
Extend the classifier to predict membership in another class.
|
void |
addNumericPredictor(String categoryName,
AbstractPMMLRegressionModel.NumericPredictor predictor)
Adds a numeric predictor to the sub-model that predicts membership in a given category.
|
protected void |
buildModelElement(Element element)
Subclasses must implement this method to fill-in the contents
of the model element.
|
Set<String> |
getCategories() |
com.pervasive.datarush.analytics.regression.AbstractPMMLRegressionModel.ValuePredictor |
getCategoryPredictor(String category,
RecordValued input,
DoubleSettable target)
Get the likelihood predictor for a particular category
|
protected void |
parseModelElement(Element element)
Parse the given model element into the respective model object.
|
void |
setIntercept(String categoryName,
double intercept)
Sets the intercept of the submodel that predicts membership in a given category.
|
getModelElementName, getModelName, getNormalizationMethod, isScorable, logistic, setModelName, setNormalizationMethod, setScorable
findModelElement, getAnnotationText, getModelExplanation, getModelSpec, getVersion, parse, setAnnotationText, setModelExplanation, setVersion, toPMML
public static final String FUNCTION_NAME
public PMMLRegressionClassificationModel()
public PMMLRegressionClassificationModel(PMMLModelSpec objectSpec)
public PMMLRegressionClassificationModel(Document document)
protected void buildModelElement(Element element)
PMMLModel
buildModelElement
in class AbstractPMMLRegressionModel
element
- the model elementprotected void parseModelElement(Element element)
AbstractPMMLRegressionModel
parseModelElement
in class AbstractPMMLRegressionModel
element
- root element of model objectpublic void addCategory(String categoryName)
categoryName
- public void addNumericPredictor(String categoryName, AbstractPMMLRegressionModel.NumericPredictor predictor)
categoryName
- which category the predictor's coefficient applies topredictor
- the predictor to addpublic void addCategoricalPredictor(String categoryName, AbstractPMMLRegressionModel.CategoricalPredictor predictor)
categoryName
- which category the predictor's coefficient applies topredictor
- the predictor to addpublic void setIntercept(String categoryName, double intercept)
categoryName
- which category the intercept belongs tointercept
- the value of the interceptpublic Set<String> getCategories()
public com.pervasive.datarush.analytics.regression.AbstractPMMLRegressionModel.ValuePredictor getCategoryPredictor(String category, RecordValued input, DoubleSettable target)
category
- the category whose likelihood is to be predictedinput
- the predictor's input recordtarget
- the predictor's outputCopyright © 2020 Actian Corporation. All rights reserved.