Ideally, this should print to #> PCA extraction with all_numeric() instead of #> No PCA components were extracted.
All steps should be investigated before this issue is closed. I haven't looked at other steps than step_pca()
library(recipes)
recipe(mpg ~ ., data = mtcars) %>%
step_pca(all_numeric(), num_comp = 3)
#> Recipe
#>
#> Inputs:
#>
#> role #variables
#> outcome 1
#> predictor 10
#>
#> Operations:
#>
#> No PCA components were extracted.
recipe(mpg ~ ., data = mtcars) %>%
step_pca(all_numeric(), num_comp = 3) %>%
prep()
#> Recipe
#>
#> Inputs:
#>
#> role #variables
#> outcome 1
#> predictor 10
#>
#> Training data contained 32 data points and no missing data.
#>
#> Operations:
#>
#> PCA extraction with cyl, disp, hp, drat, wt, qsec, vs, am, gear, car... [trained]
recipe(mpg ~ ., data = mtcars) %>%
step_kpca(all_numeric(), num_comp = 3)
#> Recipe
#>
#> Inputs:
#>
#> role #variables
#> outcome 1
#> predictor 10
#>
#> Operations:
#>
#> Kernel PCA extraction with all_numeric()
recipe(mpg ~ ., data = mtcars) %>%
step_kpca(all_numeric(), num_comp = 3) %>%
prep()
#> Recipe
#>
#> Inputs:
#>
#> role #variables
#> outcome 1
#> predictor 10
#>
#> Training data contained 32 data points and no missing data.
#>
#> Operations:
#>
#> Kernel PCA (rbfdot) extraction with cyl, disp, hp, drat, wt, qsec, vs, am... [trained]
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex https://reprex.tidyverse.org) and link to this issue.
Ideally, this should print to
#> PCA extraction with all_numeric()
instead of#> No PCA components were extracted.
All steps should be investigated before this issue is closed. I haven't looked at other steps thanstep_pca()