public class RuleBase
extends java.lang.Object
Title: RuleBase
Description: A full rule set description
Company: KEEL
Constructor and Description |
---|
RuleBase()
Default constructor.
|
RuleBase(myDataset train,
java.lang.String Rules)
To obtain the rule Base from the rule file (extracted from the C4.5 decision tree)
|
Modifier and Type | Method and Description |
---|---|
void |
coverExamples()
It detects those Rule tha cover an small-disjunt
|
void |
coverExamples(double[] weights)
It computes how many examples are covered, and the weights of these examples
|
java.lang.String |
printString()
It prints the whole rulebase
|
java.lang.String |
printStringF()
It prints the whole rulebase with float representation.
|
int |
size()
Returns the number of rules in the rule base
|
public RuleBase()
public RuleBase(myDataset train, java.lang.String Rules)
Rules
- String full rule set in "text mode"train
- myDataset training setpublic java.lang.String printString()
public java.lang.String printStringF()
public int size()
public void coverExamples()
public void coverExamples(double[] weights)
weights
- the weights of these examples