% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spectra-predict.R
\name{predict_ossl_pretrained}
\alias{predict_ossl_pretrained}
\title{Pre-trained OSSL prediction}
\usage{
predict_ossl_pretrained(
  X,
  properties,
  region = "global",
  ossl_models = NULL,
  ...
)
}
\arguments{
\item{X}{A pre-processed numeric matrix (rows = horizons,
columns = wavelengths).}

\item{properties}{Character vector of OSSL-supported property names.}

\item{region}{One of \code{"global"}, \code{"south_america"},
\code{"north_america"}, \code{"europe"}, \code{"africa"}.}

\item{ossl_models}{Optional named list of pre-trained models, keyed
by property name.}

\item{...}{Reserved.}
}
\value{
A data.table with columns \code{horizon_idx, property,
        value, pi95_low, pi95_high, n_neighbors}. \code{n_neighbors}
        is \code{NA_integer_} for pre-trained models. The
        \code{"backend"} attribute records which path was taken.
}
\description{
Applies the OSSL-distributed pre-trained PLSR / Cubist models for a
set of soil properties to pre-processed spectra. Pre-trained models
are loaded from \code{ossl_models}, a named list of property models
that each must implement a \code{predict(model, X)} interface
returning a data.frame with columns \code{value}, \code{pi95_low},
\code{pi95_high}. When \code{ossl_models} is \code{NULL}, the
synthetic predictor is used.
}
