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
step_lencode_glm()
I think i found some evidence that we can improve the speed of step_lencode_glm() significantly
the following shows a rough benchmark. to note
x
library(embed) n_obs <- 500000 data <- tibble( outcome = rnorm(n_obs), x = factor(sample(seq_len(100), n_obs, TRUE)) ) tictoc::tic("old") res <- recipe(outcome ~ x, data = data) |> step_lencode_glm(x, outcome = vars(outcome)) |> prep() tictoc::toc() #> old: 8.327 sec elapsed tictoc::tic("new") tmp <- data |> summarise(value = mean(outcome), .by = x) tictoc::toc() #> new: 0.007 sec elapsed
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I think i found some evidence that we can improve the speed of
step_lencode_glm()
significantlythe following shows a rough benchmark. to note
x
. new method has same speedThe text was updated successfully, but these errors were encountered: