View source: R/dsmartr_evaluate.R
eval_npred | R Documentation |
Calculates and maps the number of distinct soil classes predicted. Requires
outputs of
collate
.
eval_npred(
tallied_preds = NULL,
cpus = 1,
n_iterations = NULL,
noise_cutoff = NULL
)
tallied_preds |
RasterBrick; 'tallied_predictions' output by
|
cpus |
Integer; number of processors to use in parallel. |
n_iterations |
Optional Integer; the number of iterations supplied to
|
noise_cutoff |
Optional Decimal; proportion of predictions to be considered 'noise' and ignored. Acceptable values range between 0 and 1 inclusive. Defaults to 0. |
n_classes_predicted
: RasterLayer depicting the number of
distinct soils predicted per pixel more than n_iterations *
noise_cutoff
times. Written to disk as GeoTIFF.
Fewer classes predicted on a pixel generally indicates higher internal model confidence at that location.
## Not run:
# run iterate() and collate() with the example data then:
nxpred <- eval_npred(tallied_preds = collated[['tallied_predictions']],
cpus = max(1, (parallel::detectCores() - 1)),
n_iterations = nlayers(iteration_maps),
noise_cutoff = 0.1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.