java.lang.Cloneable
, ClassificationMethod
, DRSAMethod
, VCDRSAMethod
public class RulesHybridClassificationMethod extends RulesClassificationMethod implements DRSAMethod, VCDRSAMethod
firstDecisionIndex
Constructor | Description |
---|---|
RulesHybridClassificationMethod() |
|
RulesHybridClassificationMethod(RulesDRSAClassificationMethod drsaClassificationMethod,
RulesVCDRSAClassificationMethod vcdrsaClassificationMethod) |
Modifier and Type | Method | Description |
---|---|---|
ClassificationResult |
classify(Example example) |
Classifies given example
|
java.util.ArrayList<Rule> |
getRulesCovering(Example example) |
Gets list of rules covering given example
|
void |
setDecisionAttributePreferenceType(Attribute decisionAttribute) |
Sets preference type (COST or GAIN) of the decision attribute.
|
void |
setMemoryContainer(MemoryContainer memoryContainer) |
|
void |
setRulesContainer(RulesContainer rulesContainer) |
Sets rules container that is used to classify examples.
|
void |
setRulesDRSAClassificationMethod(RulesDRSAClassificationMethod method) |
|
void |
setRulesVCDRSAClassificationMethod(RulesVCDRSAClassificationMethod method) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public RulesHybridClassificationMethod()
public RulesHybridClassificationMethod(RulesDRSAClassificationMethod drsaClassificationMethod, RulesVCDRSAClassificationMethod vcdrsaClassificationMethod)
public ClassificationResult classify(Example example)
RulesClassificationMethod
classify
in interface ClassificationMethod
classify
in class RulesClassificationMethod
example
- example to classify using rules from stored rules containerpublic java.util.ArrayList<Rule> getRulesCovering(Example example)
RulesClassificationMethod
getRulesCovering
in class RulesClassificationMethod
example
- example for which list of covering rules is calculatedpublic void setRulesContainer(RulesContainer rulesContainer) throws java.lang.NullPointerException
setRulesContainer
in class RulesClassificationMethod
rulesContainer
- new rules containerjava.lang.NullPointerException
public void setDecisionAttributePreferenceType(Attribute decisionAttribute)
DRSAMethod
setDecisionAttributePreferenceType
in interface DRSAMethod
decisionAttribute
- reference to the decision attribute.public void setMemoryContainer(MemoryContainer memoryContainer)
setMemoryContainer
in interface VCDRSAMethod
public void setRulesDRSAClassificationMethod(RulesDRSAClassificationMethod method)
public void setRulesVCDRSAClassificationMethod(RulesVCDRSAClassificationMethod method)