tidymodels / parsnip

A tidy unified interface to models
https://parsnip.tidymodels.org
Other
601 stars 89 forks source link

Make sure all models with `allow_sparse_x` works with sparse data #1220

Open EmilHvitfeldt opened 1 week ago

EmilHvitfeldt commented 1 week ago

We can do this in mocked tests, properly in extratests.

Just because allow_sparse_x has been set, doesn't mean we haven't accidentally called as.matrix() on the data before it reached the model engine. This is a triple check to make sure

go through all extension packages