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
I have a data frame where I am running models on well-overlapping subsets of the data frame. Within each subset I am then using time series cross-validation. It would be very inefficient to store separate copies of each subset of the df.
As a reproducible example:
n <- 10
df <- tibble(
x = 1:n,
y = 2*1:n
)
samples <- resample_df(df, map(1:n, ~ setdiff(1:n, .)))
samples has the well overlapping subsets of the data frame. Then I can run the time series cross-validation on each subset with
Then compare object_size(samples) and object_size(samples_dfs). My data frame is wide enough and the overlapping between subsets is enough that this would be a very useful feature.
The text was updated successfully, but these errors were encountered:
Sorry for the delay, that's completely doable, and should be pretty easy. All the resampling functions have a non-exported versions that take the length of the vector as an input, and return an output. I plan on doing one more big rewrite of this package soon (next week), and then submit to CRAN
I have a data frame where I am running models on well-overlapping subsets of the data frame. Within each subset I am then using time series cross-validation. It would be very inefficient to store separate copies of each subset of the df.
As a reproducible example:
samples
has the well overlapping subsets of the data frame. Then I can run the time series cross-validation on each subset withHowever, this loses the pointer to the original data frame. You can see this by creating:
Then compare
object_size(samples)
andobject_size(samples_dfs)
. My data frame is wide enough and the overlapping between subsets is enough that this would be a very useful feature.The text was updated successfully, but these errors were encountered: