Closed topepo closed 4 years ago
I think this was fixed in https://github.com/tidymodels/parsnip/pull/203/files and could be closed.
rand_forest(trees = 100) %>%
set_engine("randomForest") %>%
fit(Species ~ ., data = iris)
Now throws:
Error: Please set the mode in the model specification.
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.
In the current devel version,
mode
is required for models that can fit classification or regression.We need a better error message when it is left to be "unknown" when
fit()
orfit_xy()
are run.For example:
Created on 2019-07-02 by the reprex package (v0.2.1)