-
Notifications
You must be signed in to change notification settings - Fork 10
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
Pass additional arguments to customized functions in identifying linear combinations of predictors (suggestion + issue) #67
Comments
Thank you! If I could get the time, I'd want to write routines in C++ that mimic glmnet so that we wouldn't have to call the R function. For sending customized input values to the R function in |
Thanks for the prompt response. This is well noted and received. I have a new issue with using a custom function in mlr3 as Update 1:
It seems to be working fine, but I have an issue with
|
This is awesome! Thank you for writing this code. I wonder if we could request the custom method be added to the |
Why not? It would allow benchmarking of anything.
Yes, interestingly it works fine with |
Thank you! Could you clarify the second item for me? Did For the PR, would you like to take the lead by initiating an issue on |
Regarding the PR, many thanks for the kind words. Sure, I will start the PR soon. |
Ahh, I see, that makes sense. ANOVA importance requires calculation of p-values so I didn't even attempt to do anova importance when a custom function is used to get linear combinations of predictors. I think perhaps |
Of course, I wondered why you don't allow ANOVA for custom methods, and then I read the following from aorsf Github main page "ANOVA is very efficient computationally, but may not be as effective as permutation or negation in terms of selecting signal over noise variables." I opened a PR for the custom method here. Finally, feel free to close this issue. |
Thank you! I should update that main page to also mention we can only compute anova importance if the linear combination method allows us to compute p-values for the variables that are being combined |
Dear Prof @bcjaeger thank you so much for such a great package.
First, Here is my two cents on improving the speed of
method='net'
.In penalized_cph.R I'd suggest looping through the unique values instead of the complete list. Fit a custom penalized Cox regression using unique values on
pbc_orsf
results in 10% to 30% speed reduction.Second, I'm exploring different methods to create linear combinations of predictors; however, I can't pass an additional argument (e.g. target_df) or access it from the parent environment in the case of a custom function. The following function will throw an error. I would appreciate any ideas on how to solve this issue.
The text was updated successfully, but these errors were encountered: