Description Usage Arguments Value Author(s) Examples
A print method for RuleSetRST objects.
1 2 |
x |
a |
howMany |
an integer giving the number of rules to be printed. The default is minimum from 10 and the total number of rules in the set. |
... |
the other parameters. |
prints its argument and returns it invisibly
Andrzej Janusz
1 2 3 4 5 6 7 8 9 10 11 12 13 | ###########################################################
## Example : Printing of a decision rule set problem
###########################################################
data(RoughSetData)
hiring.data <- RoughSetData$hiring.dt
rules <- RI.LEM2Rules.RST(hiring.data)
rules # all rules are printed
print(rules, 2) # only the first two rules are printed
# printing a subset of rules
rules[2:3]
|
Loading required package: Rcpp
A set consisting of 4 rules:
1. IF Experience is High THEN is Accept;
(supportSize=3; laplace=0.8)
2. IF Diploma is MBA and Reference is Excellent THEN is Accept;
(supportSize=1; laplace=0.666666666666667)
3. IF Experience is Low THEN is Reject;
(supportSize=3; laplace=0.8)
4. IF Reference is Neutral and Experience is Medium THEN is Reject;
(supportSize=1; laplace=0.666666666666667)
A set consisting of 4 rules:
1. IF Experience is High THEN is Accept;
(supportSize=3; laplace=0.8)
2. IF Diploma is MBA and Reference is Excellent THEN is Accept;
(supportSize=1; laplace=0.666666666666667)
... and 2 other rules.
A set consisting of 2 rules:
1. IF Diploma is MBA and Reference is Excellent THEN is Accept;
(supportSize=1; laplace=0.666666666666667)
2. IF Experience is Low THEN is Reject;
(supportSize=3; laplace=0.8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.