Skip to content

Commit

Permalink
adjust parameter defaults for uncertainty_sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertocamara committed Nov 1, 2024
1 parent 5e6336e commit 29d6fa3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions R/sits_active_learning.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#'
#' @param uncert_cube An uncertainty cube.
#' See \code{\link[sits]{sits_uncertainty}}.
#' @param n Number of suggested points per tile
#' @param n Number of suggested points to be sampled per tile.
#' @param min_uncert Minimum uncertainty value to select a sample.
#' @param sampling_window Window size for collecting points (in pixels).
#' The minimum window size is 10.
Expand Down Expand Up @@ -84,11 +84,11 @@ sits_uncertainty_sampling <- function(uncert_cube,
.check_set_caller("sits_uncertainty_sampling")
# Pre-conditions
.check_is_uncert_cube(uncert_cube)
.check_int_parameter(n, min = 1, max = 10000)
.check_num_parameter(min_uncert, min = 0.2, max = 1.0)
.check_int_parameter(sampling_window, min = 10L)
.check_int_parameter(multicores, min = 1, max = 2048)
.check_int_parameter(memsize, min = 1, max = 16384)
.check_int_parameter(n, min = 1)
.check_num_parameter(min_uncert, min = 0.0, max = 1.0)
.check_int_parameter(sampling_window, min = 1L)
.check_int_parameter(multicores, min = 1)
.check_int_parameter(memsize, min = 1)
# Slide on cube tiles
samples_tb <- slider::slide_dfr(uncert_cube, function(tile) {
# open spatial raster object
Expand Down
2 changes: 1 addition & 1 deletion man/sits_uncertainty_sampling.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 29d6fa3

Please sign in to comment.