Open topepo opened 1 month ago
`contr_one_hot()` is also in parsnip (where it is exported).
There are tests there that are a bit more extensive: https://github.com/tidymodels/parsnip/blob/main/tests/testthat/test-contr_one_hot.R
You can bring those over here and I'll open a parsnip issue about the duplication. hardhat would have to export this function for parsnip to use it.
_Originally posted by @topepo in https://github.com/tidymodels/hardhat/pull/268#discussion_r1812633876_
There are tests there that are a bit more extensive: https://github.com/tidymodels/parsnip/blob/main/tests/testthat/test-contr_one_hot.R
You can bring those over here and I'll open a parsnip issue about the duplication. hardhat would have to export this function for parsnip to use it.
_Originally posted by @topepo in https://github.com/tidymodels/hardhat/pull/268#discussion_r1812633876_