Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aurelius::pfa for rpart (method = "anova") issue argument is length zero #49

Open
jgreenfield21 opened this issue Feb 17, 2018 · 0 comments

Comments

@jgreenfield21
Copy link

Trying to call pfa.rpart on a regression tree (instead of a classification tree as in the example) gives the following

model <- rpart::rpart(Sepal.Length ~ ., data=iris)
model_as_pfa <- pfa(model)

Console:

Error in if (!is.na(node$SplitVar)) { : argument is of length zero

Please advise.

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

No branches or pull requests

1 participant