public class GeneralRegression extends PMMLClassifier implements Serializable
Constructor and Description |
---|
GeneralRegression(Element model,
Instances dataDictionary,
MiningSchema miningSchema)
Constructs a GeneralRegression classifier.
|
Modifier and Type | Method and Description |
---|---|
double[] |
distributionForInstance(Instance inst)
Classifies the given test instance.
|
String |
getRevision()
Returns the revision string.
|
String |
toString()
Return a textual description of this general regression.
|
buildClassifier, done, getCreatorApplication, getDataDictionary, getFieldsMappingString, getLog, getMiningSchema, getPMMLVersion, mapToMiningSchema, setCreatorApplication, setLog, setPMMLVersion
classifyInstance, debugTipText, forName, getCapabilities, getDebug, getOptions, listOptions, makeCopies, makeCopy, runClassifier, setDebug, setOptions
public GeneralRegression(Element model, Instances dataDictionary, MiningSchema miningSchema) throws Exception
model
- the Element that holds the model definitiondataDictionary
- the data dictionary as a set of InstancesminingSchema
- the mining schemaException
- if there is a problem constructing the general regression
object from the PMML.public String toString()
public double[] distributionForInstance(Instance inst) throws Exception
distributionForInstance
in interface Classifier
distributionForInstance
in class AbstractClassifier
inst
- the instance to be classifiedException
- if an error occurred during the predictionpublic String getRevision()
AbstractClassifier
getRevision
in interface RevisionHandler
getRevision
in class AbstractClassifier
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.