Skip to content
Snippets Groups Projects
Commit 0c59e4dd authored by Maria Voigt's avatar Maria Voigt
Browse files

fixing problem in assigning the right number of grid cells in cv

parent c3d10986
No related branches found
No related tags found
No related merge requests found
......@@ -310,7 +310,7 @@ if (!is.na(exclude_grid)){
if (!is.na(exclude_grid_rand)){
#bin_id --> randomly exclude percentage given in grid_rand
ids_to_exclude <- sample(predictors_obs$bin_id,
size = nrow(predictors_obs)/100 * exclude_grid_rand,
size = nrow(predictors_obs)/100 * exclude_grid_rand_perc,
replace = FALSE)
predictors_excluded_grid_rand <- predictors_obs[predictors_obs$bin_id %in% ids_to_exclude, ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment