
Cross-validate the local SiBCS classifier against the SmartSolosExpert API
Source:R/classify-smartsolos.R
compare_smartsolos.RdRuns both classify_sibcs (local) and
classify_via_smartsolos_api (remote PROLOG via
Embrapa AgroAPI) on the same PedonRecord and tabulates
agreement at each of the four SiBCS categorical levels.
Arguments
- pedon
A
PedonRecord.- ...
Forwarded to
classify_via_smartsolos_api.
Value
A list with local and remote
ClassificationResults plus a one-row
agreement data.frame with columns
ordem, subordem, gde_grupo, subgrupo, n_match.
Examples
if (FALSE) { # \dontrun{
Sys.setenv(AGROAPI_TOKEN = "<your token>")
cmp <- compare_smartsolos(make_argissolo_canonical())
cmp$agreement
} # }