We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
p >= 17
For p=17, this line produces a square matrix of dim [131072, 131072]
p=17
[131072, 131072]
survex/R/surv_shap.R
Line 106 in 64e96d6
See rnorm(131072*131072).
rnorm(131072*131072)
Source:
library(survival) library(survex) library(ranger) N <- 100 P <- 17 X <- matrix(rnorm(N*P), ncol=P, nrow=N) time <- rnorm(N) status <- rbinom(N, 1, 0.5) df <- cbind(data.frame(time=time, status=status), data.frame(X)) dim(df) model <- ranger(Surv(time, status) ~ ., data = df, num.trees = 50) explainer <- explain(model, data = df[, -c(1, 2)], y = Surv(df$time, df$status)) model_performance(explainer) predict_parts(explainer, df[1, -c(1, 2)]) # Error: cannot allocate vector of size 128.0 Gb
The text was updated successfully, but these errors were encountered:
Fixed with #26
Sorry, something went wrong.
krzyzinskim
No branches or pull requests
For
p=17
, this line produces a square matrix of dim[131072, 131072]
survex/R/surv_shap.R
Line 106 in 64e96d6
See
rnorm(131072*131072)
.Source:
The text was updated successfully, but these errors were encountered: