-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Extract "dependent.variable.name" from a ranger object #697
Comments
You are right, it is currently not saved. I think we can add it as you suggest, we just need to add something for the x/y interface (where there might be no name). |
IMHO for x/y interface, |
For the xy/ interface we could default to using |
But then it would be an object name and not a variable name, right? I think people want to use |
Ah, sure - I was primarily worried about having default behavior that doesn't yield |
Thanks, merged #698. |
Hey Martin,
What is the simplest way to extract "dependent.variable.name" from a ranger object?
IMHO, this needs to be extracted from
output$call
whereoutput
inheritsranger
class. This gets tricky to extract depending on the user used formula interface or "dependent.variable.name" or x/y interface at the time. Further, any hacky extraction might break due to future changes in the package.Although having "dependent.variable.name" is not required for
predict
, would it be helpful to store it somewhere like "independent.variable.names" is stored inoutput$forest
?Here is a quick fix when formula interface is used (which I can submit as a PR if you prefer):
Around line 278, we have:
which can be enriched
and later
The text was updated successfully, but these errors were encountered: