-
Notifications
You must be signed in to change notification settings - Fork 92
aorsf
- engine: model fit fails if mtry
is specified
#1276
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
Comments
aorsf
- enginemodel fit fails if mtry
is specifiedaorsf
- engine: model fit fails if mtry
is specified
Thanks for the issue! Just confirming that I can reproduce this and 1) it does seem to be aorsf-specific (i.e. xgboost is not an issue) and 2) it doesn't seem to be due to any changes in parsnip (issue persists with parsnip v1.0.0). |
Just saw this and thought I'd check it out. The issue appears to occur in parsnip:::make_form_call: If we modify: if (object$engine == "spark") {
env$x <- env$data
} to if (object$engine %in% c("spark", "aorsf")) {
env$x <- env$data
} the @simonpcouch - would this solution be too hacky? A more general approach might change the call to |
This is what happens: For the ranger engine, you end up in Lines 148 to 157 in 6d4c684
On the other hand, with the aorsf engine, you end up in Lines 40 to 55 in 6d4c684
The created call is
and the Leading to the error because we try to evaluate We could either do what @bcjaeger suggests, OR add a |
Hi,
the model fit fails if
mtry
is specified for theaorsf
-engine. If it is not specified, it works with the default engine values.Created on 2024-08-08 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: