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
Stack Overflow Error #50
Comments
Thanks for the Info, I have not seen it before. Without data to reproduce the problem, I can't do anything. |
I have made an example to demonstrate it. library(missRanger)
data <- matrix(rnorm(385 * 20000), nrow = 385, ncol = 20000)
data[5, 5] <- NA
data <- missRanger(as.data.frame(data)) |
Thanks! It fails due to the formula interface of library(missRanger)
data <- as.data.frame(matrix(rnorm(385 * 20000), nrow = 385, ncol = 20000))
# data[5, 5] <- NA
fit <- ranger::ranger(V5 ~ ., data = data) # Stack overflow
fit <- ranger::ranger(y = data[, 5], x = data[, -5]) # No problem {missRanger} uses the formula interface, but seeing about problem, it would be an idea to change this in a future version and use the x/y interface. The problem comes from |
I think this solution could help. It allows R to parse larger formulas: https://www.researchgate.net/post/error_protect_protection_stack_overflow_in_R |
Fixed in #52 |
I have a gene expression matrix with only two missing values. it causes a stack overflow error. I did mean imputation instead.
The text was updated successfully, but these errors were encountered: