Evaluates or reuses the candidate kernel orders of a tuning grid
(default: the paper rule's lambda grid via tuning_dnn_paper(), always
including the fitted s) and plots the estimates with confidence
bounds against s, marking the fitted kernel order with a filled point
and a dotted guide. For grid fits, the stored tuning_grid payload is
consumed directly. For scalar fits, the internal grid engine is used on
the stored model state; public estimators are not refit.
Usage
plot_tuning(
object,
tuning = tuning_dnn_paper(),
targets = NULL,
level = 0.95,
se = TRUE,
candidates = "all",
...
)
# Default S3 method
plot_tuning(
object,
tuning = tuning_dnn_paper(),
targets = NULL,
level = 0.95,
se = TRUE,
candidates = "all",
...
)
# S3 method for class 'np_result'
plot_tuning(
object,
tuning = tuning_dnn_paper(),
targets = NULL,
level = 0.95,
se = TRUE,
candidates = "all",
...
)
# S3 method for class 'cate_result'
plot_tuning(
object,
tuning = tuning_dnn_paper(),
targets = NULL,
level = 0.95,
se = TRUE,
candidates = "all",
...
)
# S3 method for class 'plqr_result'
plot_tuning(
object,
tuning = tuning_dnn_paper(),
targets = NULL,
level = 0.95,
se = TRUE,
candidates = "all",
...
)Arguments
- object
A fitted
np_result,cate_result, orplqr_result.- tuning
A tuning specification for the candidate grid (default
tuning_dnn_paper()).- targets
Optional integer vector of target ids (defaults to at most three: first, middle, last).
- level
Confidence level for the bounds (default
0.95).- se
Logical; compute jackknife bounds for each candidate when
objectis a scalar fit (defaultTRUE). Stored grid fits reuse the standard errors already present inobject$tuning_grid.- candidates
Candidate rows to display. The default
"all"shows the tuning sweep; a character vector of candidate ids or"default"can be used to restrict the display.- ...
Ignored; reserved for future options.
Details
Scalar grid evaluation uses the training data stored on the fit; fits from package versions predating that storage must be re-estimated first.
Experimental methods
Methods for plqr_result objects are experimental, as is all PLQR
functionality in this release; see plqr_dnn().
