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

add method for dbarts::bart() #65

Merged
merged 2 commits into from
Jul 15, 2024
Merged

add method for dbarts::bart() #65

merged 2 commits into from
Jul 15, 2024

Conversation

simonpcouch
Copy link
Collaborator

Closes #64. :)

if (is.null(x$fit)) {
rlang::abort(c(
"`x` can't be bundled.",
"`x` must have been fitted with argument `keeptrees = TRUE`."
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parsnip sets keeptrees = TRUE under the hood, so users will only run into this if they use the dbarts interface directly and don't set that argument.

@@ -0,0 +1,121 @@
test_that("bundling + unbundling bart fits", {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything in this test_that() call is boilerplate mirroring other methods.

Copy link
Member

@juliasilge juliasilge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working great for me! 🙌

@simonpcouch simonpcouch merged commit da505eb into main Jul 15, 2024
9 checks passed
@simonpcouch simonpcouch deleted the bart-64 branch July 15, 2024 18:20
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.

predictions from a bart classification model
2 participants