public class RuleSetModel extends PMMLClassifier
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_algorithmName
The algorithm name (if defined)
|
protected weka.classifiers.pmml.consumer.TreeModel.MiningFunction |
m_functionType
The mining function
|
protected java.lang.String |
m_modelName
The model name (if defined)
|
protected weka.classifiers.pmml.consumer.RuleSetModel.RuleSet |
m_ruleSet
The set of rules
|
m_creatorApplication, m_dataDictionary, m_fieldsMap, m_initialized, m_log, m_miningSchema, m_pmmlVersionBATCH_SIZE_DEFAULT, m_BatchSize, m_Debug, m_DoNotCheckCapabilities, m_numDecimalPlaces, NUM_DECIMAL_PLACES_DEFAULT| 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, setPMMLVersionbatchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getCapabilities, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getOptions, implementsMoreEfficientBatchPrediction, listOptions, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces, setOptionsprotected weka.classifiers.pmml.consumer.TreeModel.MiningFunction m_functionType
protected java.lang.String m_modelName
protected java.lang.String m_algorithmName
protected weka.classifiers.pmml.consumer.RuleSetModel.RuleSet m_ruleSet
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 ClassifierdistributionForInstance in class AbstractClassifierinst - the instance to be classifiedjava.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