eval_ties: Detect ties for most-probable soil

View source: R/dsmartr_evaluate.R

eval_tiesR Documentation

Detect ties for most-probable soil

Description

Calculates and maps out locations where the most-probable soil is a tie between two or more classes. Requires output from dsmartr::collate().

Usage

eval_ties(tallied_preds = NULL, cpus = 1)

Arguments

tallied_preds

RasterBrick; tallied_predictions output by dsmartr::collate().

cpus

Integer; number of processors to use in parallel.

Value

n_classes_predicted: RasterLayer depicting the number of soils tied for most-probable per pixel. Written to disk as GeoTIFF.

Examples

## Not run: 
# run iterate() and collate() with the example data then:
tiemap <- eval_ties(tallied_preds = collated[['tallied_predictions']],
                   cpus = max(1, (parallel::detectCores() - 1)))
                   
## End(Not run)

obrl-soil/dsmartr documentation built on Feb. 1, 2024, 10:57 p.m.