Returns a one-row table that describes how a local polynomial smoother was fitted. The table gives the backend that was requested and the backend that was used, the rule requested for the chart dimension and the dimension that resulted, the selected tuning parameters, and whether the fit used the recommended settings for local PCA charts described below.
Value
A one-row data.frame with backend, chart-dimension, selection,
candidate-count, and policy fields.
Details
The choice of backend is conservative. backend = "auto" uses the
C++ backend when the smoother works in the supplied coordinates and the R
reference backend when coordinate.method = "local.pca". The C++
backend for local PCA, "cpp.local.pca", is used only when requested
explicitly. This function reports which backend was used, so that it can
be recorded with the results of an analysis.
For real-data local-PCA runs, the deployable chart-dimension contract is
the ordinary local.chart.method = "pca" path with
chart.dim = "auto" or "local.auto" and observed-covariate
auto-dimension diagnostics.
In P7-style experiments this is paired with
auto.chart.support.metric = "both" and
auto.chart.selection.metric = "operator". The experimental
"second.order.svd" chart path is reported explicitly but is not
certified by this deployable local-PCA contract. For LPS itself, which uses
coordinate supports, the operator-support diagnostic is currently equivalent
to the coordinate-support diagnostic; the fields are still recorded so the
same manifest schema can be shared with LPL-TF and S-LPL-TF experiments.
Examples
X <- matrix(seq(0, 1, length.out = 16), ncol = 1)
fit <- fit.lps(X, X[, 1]^2, support.grid = 6L, degree.grid = 1L,
kernel.grid = "gaussian", cv.folds = 2L, backend = "R")
lps.backend.diagnostics(fit)
#> method.id outcome.family coordinate.method local.chart.method
#> 1 lps gaussian coordinates pca
#> local.chart.method.effective backend.requested backend.used
#> 1 none R R
#> backend.auto.policy requested.chart.dim resolved.chart.dim chart.dim.auto
#> 1 explicit_R NULL 1 FALSE
#> chart.dim.local.auto chart.dim.mode chart.dim.by.anchor.n
#> 1 FALSE ambient 16
#> chart.dim.by.anchor.min chart.dim.by.anchor.max auto.chart.support.metric
#> 1 1 1 coordinates
#> auto.chart.selection.metric auto.chart.support.metric.selected
#> 1 coordinates <NA>
#> auto.chart.fallback.used auto.chart.n.anchors auto.chart.median.local.dim
#> 1 NA NA NA
#> selected.support.size selected.degree selected.kernel
#> 1 6 1 gaussian
#> selected.bandwidth.multiplier selected.cv.rmse.observed
#> 1 1 0.07000098
#> selected.cv.brier.observed selected.cv.logloss.observed
#> 1 NA NA
#> design.basis design.drop.tol ridge.multiplier.grid
#> 1 orthogonal.polynomial.drop 1e-08 0;1e-10;1e-08
#> ridge.condition.max bandwidth.multiplier.grid unstable.action candidate.count
#> 1 1e+12 1 na 1
#> local.pca.real.data.contract
#> 1 FALSE