Skip to content
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

out of bounds error in step_pca_sparse() #52

Open
EmilHvitfeldt opened this issue Jul 28, 2024 · 0 comments
Open

out of bounds error in step_pca_sparse() #52

EmilHvitfeldt opened this issue Jul 28, 2024 · 0 comments
Labels
bug an unexpected problem or unintended behavior
Milestone

Comments

@EmilHvitfeldt
Copy link
Member

library(recipes)
library(ggplot2)
library(embed)

data(ad_data, package = "modeldata")

ad_rec <-
  recipe(Class ~ ., data = ad_data) %>%
  step_normalize(all_numeric_predictors()) %>%
  step_pca_sparse(
    all_numeric_predictors()) %>%
  prep()
#> Warning in irlba::ssvd(x = as.matrix(training[, col_names]), k = 5, n = 129L):
#> no sparsity constraints specified
orbital::orbital(ad_rec)
#> Error:
#> ! Failed to evaluate glue component {rot[, i]}
#> Caused by error in `rot[, i]`:
#> ! subscript out of bounds

Created on 2024-07-28 with reprex v2.1.0

@EmilHvitfeldt EmilHvitfeldt added the bug an unexpected problem or unintended behavior label Jul 28, 2024
@EmilHvitfeldt EmilHvitfeldt added this to the 0.3.0 milestone Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant