Skip to content

Adding the possibility to skip pruning step when using CBA function#31

Open
DouglasMesquita wants to merge 1 commit intoianstenbit:masterfrom
DouglasMesquita:allow-no-pruning
Open

Adding the possibility to skip pruning step when using CBA function#31
DouglasMesquita wants to merge 1 commit intoianstenbit:masterfrom
DouglasMesquita:allow-no-pruning

Conversation

@DouglasMesquita
Copy link

Link to the issue

close #30

How to test the changes

data("iris")
formula <- Species ~ .

trans <- prepareTransactions(formula = formula, data = iris)
rulebase <- mineCARs(
  formula = Species ~ .,
  transactions = trans,
  supp = 0.05,
  conf = 0.9
)
n_rules <- length(rulebase)

cba_no_pruning <- CBA(formula, iris, supp = 0.05, conf = 0.9, pruning = NULL)

In this case, length(rules(cba_no_pruning)) == n_rules as desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pruning is not necessary when the user have its own pruning method

1 participant