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

Error in matrix(data = c(collapse::fnth(numeric_data, 0.1, w = self$weights), : 'data' must be of a vector type, was 'NULL' #55

Closed
cmululu opened this issue Apr 29, 2024 · 2 comments
Assignees

Comments

@cmululu
Copy link

cmululu commented Apr 29, 2024

For the oblique random survival forest model, if there is only one independent variable in the data except for the time and event. The error will happen.

image
image

@bcjaeger
Copy link
Collaborator

Thanks! Would you be comfortable providing a reprex for this error? I will check it out a little more carefully and see if it's feasible to work in a fix.

For oblique random forests, you don't gain anything from including fewer than 2 predictor variables. Oblique splitting with 1 variable is the same thing as axis based splitting.

@bcjaeger bcjaeger self-assigned this Apr 29, 2024
@bcjaeger
Copy link
Collaborator

PR #56 should fix the error you received. Please don't hesitate to let me know if there are still issues after you download the development version of aorsf

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

No branches or pull requests

2 participants