Tidymodels creating a split object from testing and training data, perform last_fit()

I am recently getting familiar with the tidymodels framework and was wondering if there is a way to create a split object (one which u normally make with the initial_split() function from the rsamples package) from available training and testing data.

So i have training data and testing data and want to create a split object from them.

The reason i ask is because i need this split object in order to perform last_fit() (from the tune package) on it in order to gain insights (collect_metrics(), collect_predictions and so on) after i got my best model with select_best() (from the tune package aswell).

Thanks for help :hugs:

We don't have a function for that but you could reverse engineer an rsplit object to get there.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.