rpart
rpart copied to clipboard
Recursive Partitioning and Regression Trees
library(modeldata) data(credit_data) fit
library(rpart.plot) library(rpart) train
There's a really old issue about this package in the r project tracker https://bugs.r-project.org/bugzilla/show_bug.cgi?id=7895 In 2008 someone (probably Prof. Ripley) thought it might be user error. I have found that...
Would you be open to a PR for refactoring `rpart` into`rpart.formula` and `rpart.default` methods? I think I may have mentioned this back in January at the Rstudio conference.
Fail to convert rpart object to class party for plotting. The codes are shown below: `library(tidyverse) library(mdsr) url % filter(income == ">50K") %>% pull(pct) pi_bar form % fit(form, data =...
Hi Beth! Here's a little example: ``` library(mlbench) library(rpart) data("BostonHousing2", package = "mlbench") model
Hello there. I am currently writing some custom split methods that aim to deal with non-iid datasets. I've been following the code in [`tests/usersplits.R`](https://github.com/bethatkinson/rpart/blob/master/tests/usersplits.R) in order to attempt to right...
Hello, I used the "rpart" library and fit a decision tree using some data: #from a previous question : https://stackoverflow.com/questions/65678552/r-changing-plot-sizes ``` library(rpart) car.test.frame$Reliability = as.factor(car.test.frame$Reliability) z.auto = 3167.5 then reliability...
If the weights passed into the model are case weights, then should they not be used to determine whether a split should happen or not? In partition.c me->num_obs is being...
Hi. Some time ago I installed rpart from CRAN and it was very slowly estimating my model.. Then I have seen issue on github that there was problem with rpart.matrix()...