public class RuleSetModel extends PMMLClassifier
Constructor and Description |
---|
RuleSetModel(org.w3c.dom.Element model,
Instances dataDictionary,
MiningSchema miningSchema)
Constructor for a RuleSetModel
|
Modifier and Type | Method and Description |
---|---|
double[] |
distributionForInstance(Instance inst)
Classifies the given test instance.
|
java.lang.String |
getRevision()
Get the revision string for this class
|
java.lang.String |
toString()
Return a textual description of this model.
|
buildClassifier, done, getCreatorApplication, getDataDictionary, getFieldsMappingString, getLog, getMiningSchema, getPMMLVersion, mapToMiningSchema, setCreatorApplication, setLog, setPMMLVersion
classifyInstance, debugTipText, doNotCheckCapabilitiesTipText, forName, getCapabilities, getDebug, getDoNotCheckCapabilities, getOptions, listOptions, makeCopies, makeCopy, runClassifier, setDebug, setDoNotCheckCapabilities, setOptions
public RuleSetModel(org.w3c.dom.Element model, Instances dataDictionary, MiningSchema miningSchema) throws java.lang.Exception
model
- the XML element encapsulating the RuleSetModeldataDictionary
- the data dictionary to useminingSchema
- the mining schema to usejava.lang.Exception
- if something goes wrongpublic double[] distributionForInstance(Instance inst) throws java.lang.Exception
distributionForInstance
in interface Classifier
distributionForInstance
in class AbstractClassifier
inst
- the instance to be classifiedjava.lang.Exception
- if an error occurred during the predictionpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class AbstractClassifier