Commit c2f0e202 authored by Romulo Pereira Goncalves's avatar Romulo Pereira Goncalves
Browse files

Keep the old version that allows the user to restart a step using data stored in memory.

parent e2751391
......@@ -21,7 +21,7 @@
#' @param multiTest number of test runs to compare different probability outputs
#' @param RGB rgb channel numbers for image plot
#' @param overwrite overwrite the KML and raster files from previous runs (default TRUE)
#' @param save_runs an Habitat object and extra info (to restart a run) is saved (default TRUE)
#' @param save_runs an Habitat object is saved into disk for each run (default TRUE)
#' @param parallel_mode run loops using all available cores (default FALSE)
#' @param max_num_cores maximum number of cores for parallelism (default 5)
#' @param plot_on_browser plot on the browser or inline in a notebook (default TRUE)
......@@ -337,11 +337,9 @@ multi_Class_Sampling <- function(in.raster,
in.raster <- in.raster * dummy
reference <- reference[-index,]
classNames <- classNames[-index]
if (save_runs) {
out.reference <<- reference
out.names <<- classNames
out.raster <<- in.raster
}
out.reference <<- reference
out.names <<- classNames
out.raster <<- in.raster
remove(dummy)
remove(maFo_rf)
......
......@@ -69,7 +69,7 @@ multi_Class_Sampling(
\item{overwrite}{overwrite the KML and raster files from previous runs (default TRUE)}
\item{save_runs}{an Habitat object and extra info (to restart a run) is saved (default TRUE)}
\item{save_runs}{an Habitat object is saved into disk for each run (default TRUE)}
\item{parallel_mode}{run loops using all available cores (default FALSE)}
......
......@@ -50,7 +50,7 @@ The demo shows how to classify 7 classes using a Sentinel 2 image.
multiTest # number of test runs to compare different probability output
RGB # pallet colors for the interactive plots
overwrite # overwrite the KML and raster files from previous runs (default TRUE)
save_runs # an Habitat object and extra info (to restart a run) is saved (default TRUE)
save_runs # Habitat object is saved into disk for each run (default TRUE)
parallel_mode # run loops using all available cores (default False
max_num_cores # maximum number of cores for parallelism (default 5)
plot_on_browser # plot on the browser or inline in a notebook (default TRUE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment