- java.lang.Object
-
- com.pervasive.datarush.analytics.pmml.ModelQuality
-
- Direct Known Subclasses:
PredictiveModelQuality
public abstract class ModelQuality extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringATT_DATA_NAMEThe name of the "dataName" PMML attribute corresponding to getDataName()
-
Constructor Summary
Constructors Constructor Description ModelQuality()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetDataName()protected abstract voidparse(Element toParse)Initialize this object's state from a PMML element with the appropriate typevoidsetDataName(String dataName)Record a label for the source dataset used to calculate the model quality information.static ModelQualitysmartParse(Element toParse)abstract voidtoPMML(Element parent)Build this ModelQuality as a PMML element with a given parent
-
-
-
Field Detail
-
ATT_DATA_NAME
protected static final String ATT_DATA_NAME
The name of the "dataName" PMML attribute corresponding to getDataName()- See Also:
- Constant Field Values
-
-
Method Detail
-
toPMML
public abstract void toPMML(Element parent)
Build this ModelQuality as a PMML element with a given parent- Parameters:
parent- the future parent of the element
-
smartParse
public static ModelQuality smartParse(Element toParse)
- Parameters:
toParse- an element corresponding to a model quality 'choice' element.- Returns:
- a ModelQuality of an appropriate subclass, or null if the element is not of a supported type of ModelQuality.
-
setDataName
public void setDataName(String dataName)
Record a label for the source dataset used to calculate the model quality information.- Parameters:
dataName-
-
getDataName
public String getDataName()
- Returns:
- a label for the source dataset used to calculate the model quality information, or null if it's unknown or unavailable.
-
parse
protected abstract void parse(Element toParse)
Initialize this object's state from a PMML element with the appropriate type- Parameters:
toParse- The element with the state- Throws:
InvalidPMMLException- if toParse is not legal PMML or of the wrong typeUnsupportedPMMLException- (optionally) if toParse specifies an unsupported kind of sub-element
-
-