Skip to content

out of bounds error in step_pca_sparse() #52

Description

@EmilHvitfeldt
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions