Skip to content

Commit

Permalink
factor_cols fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dswatson committed Aug 30, 2023
1 parent 2710517 commit 8077c7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/forde.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,11 @@ forde <- function(
x <- as.data.frame(x)
n <- nrow(x)
d <- ncol(x)
factor_cols <- sapply(x, is.factor)
colnames_x <- colnames(x)
classes <- sapply(x, class)
x <- suppressWarnings(prep_x(x))
factor_cols <- sapply(x, is.factor)
names(factor_cols) <- colnames_x

# Compute leaf bounds and coverage
num_trees <- arf$num.trees
Expand Down

0 comments on commit 8077c7e

Please sign in to comment.