Is it possible to transform a target variable using `ravel()` or `to_numpy()` in a `sklearn` pipeline?
I am using RStudio and tidymodels in an R markdown document. I would like to incorporate some models from scikit-learn. Getting data from the R code chunks to the Python code chunk works well, but when I train and test a model using the following code: