Skip to content

Rules are not working properly in cubistControl? #16

@tag-dad

Description

@tag-dad

I have a data set of 11 variables, including one outcome variable (ytr) and 10 predictors (xtr). There are 368 observations. I am running the following simple code:

cc <- cubistControl(rules = 100, extrapolation = 5)
or
cc <- cubistControl(rules = 50, extrapolation = 5)

tuned <- cubist(x = xtr, y = ytr,
committees = 1,
neighbors = 0,
control = cc)

On this data set, I get 7 rules if I set the rules to be 100, but 5 rules with the rules of 50. So, the only change that I make here is the number of rules in cubistControl(). As far as I understand this parameter limit the maximum rules that cubist will identify. So, this is somehow strange to me.

To be honest, I am not even sure if this issue is a bug or not because I have not checked with other data sets. But I feel like to report it to you.

I am sorry I can't post the exact data set here. But please let me know if you want to take a look into this then I will email you the data and script. If this is not a bug and can happen, please correct me. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions