You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am interested in using GRF to predict the group membership for each tree. Below the code using randomForestSRC::rfsrc as reference to what I had in mind.
Example code
# simulate training data
n <- 500
p <- 3
X <- matrix(rnorm(n * p), n, p)
Y <- X[, 1] * rnorm(n)
#as data frame
df_train <- data.frame(Y,X)
#simulate small testing set
X_test <- matrix(rnorm(5*p), 5, p)
df_test <- data.frame(X_test)
Hi, I am interested in using GRF to predict the group membership for each tree. Below the code using randomForestSRC::rfsrc as reference to what I had in mind.
Example code
Returns a data frame with 5 rows and ntrees columns. Each column corresponds to a tree. An entry corresponds to which node leaf the test set lands in.
Would something as above work with GRF?
Thank you in advance!
The text was updated successfully, but these errors were encountered: