business-science / gammodels

The parsnip backend for GAM Models.
https://business-science.github.io/gammodels/
Other
7 stars 3 forks source link

Multiclass classification - How to implement in parsnip #11

Open mdancho84 opened 3 years ago

mdancho84 commented 3 years ago

Need to figure out how to do this in parsnip / workflows.

Example:

mpg <- ggplot2::mpg
mpg$cyl <- as.numeric(as.factor(mpg$cyl))-1

mgcv::gam(list(cyl ~ s(cty), ~ s(cty), ~s(cty)), 
          family = multinom(K=3), 
          data = mpg)
AlbertoAlmuinha commented 3 years ago

Any news on this? We should refloat this.