public class PredictiveModelQuality extends ModelQuality
Modifier and Type | Class and Description |
---|---|
static class |
PredictiveModelQuality.Usage
Indicator for the phases of model-building during which a dataset may be used.
|
Modifier and Type | Field and Description |
---|---|
protected static String |
ELEM_THIS
Constant for the name of the
PredictiveModelQuality element. |
ATT_DATA_NAME
Constructor and Description |
---|
PredictiveModelQuality()
Default constructor for bean-like behavior
|
Modifier and Type | Method and Description |
---|---|
Double |
getAIC()
Get the Akaike Information Criterion, a measure of the relative goodness of fit of a statistical model.
|
Double |
getBIC()
Get the Bayesian Information Criterion, a measure of the relative goodness of fit of a statistical model which penalizes the number of parameters more strongly than AIC.
|
PredictiveModelQuality.Usage |
getDataUsage()
Get the dataUsage, the relationship between the model and the dataset used to measure its quality.
|
Integer |
getDegreesOfFreedom()
Get the Degrees of Freedom of the error of the model
|
double |
getExtensionStatistic(String name)
Retrieve a statistic about the model that is not directly supported by PMML
|
Set<String> |
getExtensionStatisticNames() |
Double |
getMeanAbsoluteError()
Get the meanAbsoluteError, the mean of the absolute values of the predictive errors on that dataset.
|
Double |
getMeanSquaredError()
Get the Mean Squared Error, the mean of the squares of the predictive errors on that dataset.
|
Double |
getR_squared()
Get the r-squared attribute, a measure of the amount of variance in the target variable explained by a model.
|
Double |
getRootMeanSquaredError()
Get the rootMeanSquaredError, the square root of the mean of the squares of the predictive errors on the dataset.
|
Double |
getSumSquaredError()
Get the Sum Of Squares (Error) statistic.
|
Double |
getSumSquaredRegression()
Get the Sum Of Squares (Regression) statistic.
|
String |
getTargetField()
Get the predicted field on which the quality information was measured.
|
boolean |
hasExtensionStatistic(String name)
Check whether a certain statistic is available as an extension
|
protected void |
parse(Element toParse)
Initialize this object's state from a PMML element with the appropriate type
|
void |
setAIC(Double AIC) |
void |
setBIC(Double BIC) |
void |
setDataUsage(PredictiveModelQuality.Usage dataUsage)
Sets the "dataUsage" attribute for the model.
|
void |
setDegreesOfFreedom(Integer degreesOfFreedom) |
void |
setExtensionStatistic(String name,
double value)
Sets the value of an attribute not directly supported by PMML.
|
void |
setMeanAbsoluteError(Double meanAbsoluteError)
Sets the "meanAbsoluteError" attribute for the model.
|
void |
setMeanSquaredError(Double meanSquaredError)
Sets the "meanSquaredError" attribute for the model.
|
void |
setR_squared(Double r_squared)
Sets the "r-squared" attribute for the model.
|
void |
setRootMeanSquaredError(Double rootMeanSquaredError) |
void |
setSumSquaredError(Double sumSquaredError) |
void |
setSumSquaredRegression(Double sumSquaredRegression) |
void |
setTargetField(String targetField)
Sets the "targetField" attribute for the model.
|
void |
toPMML(Element parent)
Build this ModelQuality as a PMML element with a given parent
|
getDataName, setDataName, smartParse
protected static final String ELEM_THIS
PredictiveModelQuality
element.public PredictiveModelQuality()
public void toPMML(Element parent)
ModelQuality
toPMML
in class ModelQuality
parent
- the future parent of the elementprotected void parse(Element toParse)
ModelQuality
parse
in class ModelQuality
toParse
- The element with the statepublic Double getR_squared()
public Double getMeanAbsoluteError()
public Double getRootMeanSquaredError()
public Double getAIC()
public Double getBIC()
public Integer getDegreesOfFreedom()
public Double getMeanSquaredError()
public Double getSumSquaredError()
public Double getSumSquaredRegression()
public PredictiveModelQuality.Usage getDataUsage()
public String getTargetField()
public boolean hasExtensionStatistic(String name)
name
- The name of the statistic to checkpublic double getExtensionStatistic(String name)
name
- the extension statistic to checkpublic Set<String> getExtensionStatisticNames()
public void setTargetField(String targetField)
targetField
- the "targetField" attribute for the model.public void setR_squared(Double r_squared)
r_squared
- the "r-squared" attribute for the model.public void setMeanAbsoluteError(Double meanAbsoluteError)
meanAbsoluteError
- the "meanAbsoluteError" attribute for the model.public void setMeanSquaredError(Double meanSquaredError)
meanSquaredError
- the "meanSquaredError" attribute for the model.public void setRootMeanSquaredError(Double rootMeanSquaredError)
public void setAIC(Double AIC)
public void setBIC(Double BIC)
public void setDegreesOfFreedom(Integer degreesOfFreedom)
public void setSumSquaredError(Double sumSquaredError)
public void setSumSquaredRegression(Double sumSquaredRegression)
public void setDataUsage(PredictiveModelQuality.Usage dataUsage)
dataUsage
- the "dataUsage" attribute for the model.public void setExtensionStatistic(String name, double value)
name
- the "name" attribute of the extensionvalue
- the "value" attribute of the extensionCopyright © 2016 Actian Corporation. All rights reserved.