Skip to content

Add repeats to spatial_leave_location_out_cv() #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 18, 2022
Merged

Conversation

mikemahoney218
Copy link
Member

Fixes #118

library(spatialsample)
data(ames, package = "modeldata")
ames_sf <- sf::st_as_sf(ames, coords = c("Longitude", "Latitude"), crs = 4326)
spatial_leave_location_out_cv(
  ames_sf,
  Neighborhood,
  v = 2,
  repeats = 2
)
#> #  2-fold spatial leave-location-out cross-validation 
#> # A tibble: 4 × 2
#>   splits              id   
#>   <list>              <chr>
#> 1 <split [1036/1894]> Fold1
#> 2 <split [1894/1036]> Fold2
#> 3 <split [1052/1878]> Fold3
#> 4 <split [1878/1052]> Fold4

Created on 2022-11-18 by the reprex package (v2.0.1)

@mikemahoney218 mikemahoney218 merged commit 104f55b into main Nov 18, 2022
@mikemahoney218 mikemahoney218 deleted the mike/llo_repeats branch November 18, 2022 19:35
@github-actions
Copy link

github-actions bot commented Dec 3, 2022

This pull request 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.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spatial_leave_location_out_cv() should have a repeats argument
1 participant