|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.AbstractClassifier
weka.classifiers.pmml.consumer.PMMLClassifier
weka.classifiers.pmml.consumer.RuleSetModel
public class RuleSetModel
Class implementing import of PMML RuleSetModel. Can be used as a Weka classifier for prediction only (buildClassifier() raises an Exception).
| Constructor Summary | |
|---|---|
RuleSetModel(org.w3c.dom.Element model,
Instances dataDictionary,
MiningSchema miningSchema)
Constructor for a RuleSetModel |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class weka.classifiers.pmml.consumer.PMMLClassifier |
|---|
buildClassifier, done, getCreatorApplication, getDataDictionary, getFieldsMappingString, getLog, getMiningSchema, getPMMLVersion, mapToMiningSchema, setCreatorApplication, setLog, setPMMLVersion |
| Methods inherited from class weka.classifiers.AbstractClassifier |
|---|
classifyInstance, debugTipText, forName, getCapabilities, getDebug, getOptions, listOptions, makeCopies, makeCopy, setDebug, setOptions |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 use
java.lang.Exception - if something goes wrong| Method Detail |
|---|
public double[] distributionForInstance(Instance inst)
throws java.lang.Exception
distributionForInstance in interface ClassifierdistributionForInstance in class AbstractClassifierinst - the instance to be classified
java.lang.Exception - if an error occurred during the predictionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class AbstractClassifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||