I'm wondering if stan
is valid engine when using parsnip::multinom_reg()
or not?
In the documentation at Multinomial regression — multinom_reg • parsnip, it is mentioned that stan is a valid engine in the "Details" section.
When I tried to use a stan
engine in multinom_reg()
, I got an error message "Error: Engine 'stan' is not available. Please use one of: 'glmnet', 'spark', 'keras', 'nnet'".
library(tidymodels)
#> ── Attaching packages ────────────────────────────────────────────────────────────────────────────────────── tidymodels 0.1.1 ──
#> ✓ broom 0.7.0 ✓ recipes 0.1.13
#> ✓ dials 0.0.8 ✓ rsample 0.0.7
#> ✓ dplyr 1.0.0 ✓ tibble 3.0.3
#> ✓ ggplot2 3.3.2 ✓ tidyr 1.1.0
#> ✓ infer 0.5.3 ✓ tune 0.1.1
#> ✓ modeldata 0.0.2 ✓ workflows 0.1.2
#> ✓ parsnip 0.1.3 ✓ yardstick 0.0.7
#> ✓ purrr 0.3.4
#> ── Conflicts ───────────────────────────────────────────────────────────────────────────────────────── tidymodels_conflicts() ──
#> x purrr::discard() masks scales::discard()
#> x dplyr::filter() masks stats::filter()
#> x dplyr::lag() masks stats::lag()
#> x recipes::step() masks stats::step()
data("iris")
clf <- multinom_reg() %>%
set_engine("stan")
#> Error: Engine 'stan' is not available. Please use one of: 'glmnet', 'spark', 'keras', 'nnet'
clf_fit <- clf %>%
fit(Species ~ ., data = iris)
#> Error in eval(lhs, parent, parent): object 'clf' not found
Created on 2020-09-18 by the reprex package (v0.3.0)