Hi, i'm using tidymodels for lda. What is the argument for set_engine? And what is the model specification code? Thanks
lda_specification=() %>% set_engine("")
This (pseudo?)code doesn't make sense. Can you fix?
I'll explain: for expample, for logistic regression i do such a thing: def_poly_log = logistic_reg() %>% set_engine("glm")
for lda, what i should write? thank, i hope now it's clearer
You would load the discrim package and do:
library(discrim) lda_spec <- discrim_linear() %>% set_engine('MASS')
pro tip in parsnip, run parsnip_addin() for a popup window that will write the code for you:
parsnip_addin()
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.