You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's consider making this easier still by building some kind of function to take two dataframes (training, testing) as input and creating a split as output.
The text was updated successfully, but these errors were encountered:
The new functionality for this is with make_splits():
library(rsample)
library(dplyr)
#> #> Attaching package: 'dplyr'#> The following objects are masked from 'package:stats':#> #> filter, lag#> The following objects are masked from 'package:base':#> #> intersect, setdiff, setequal, union
data(cells, package="modeldata")
make_splits(
cells %>% filter(case=="Train"),
cells %>% filter(case=="Test")
)
#> <Analysis/Assess/Total>#> <1009/1010/2019>
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.
We find that folks sometimes have existing training/testing sets they want to use instead of starting from
initial_split()
:It is already possible to make a
split
object from dataframes in whatever way you want:Created on 2021-05-19 by the reprex package (v2.0.0)
Let's consider making this easier still by building some kind of function to take two dataframes (training, testing) as input and creating a
split
as output.The text was updated successfully, but these errors were encountered: