Leave-one-out cross-validation for ordered multiclass ODA.
Source:R/multioda_core.R
oda_loo_multiclass_ordered.RdLeave-one-out cross-validation for ordered multiclass ODA.
Usage
oda_loo_multiclass_ordered(
x,
y,
w0,
priors_on_eff,
degen,
K_segments,
miss_codes = NULL,
cut_value_mode = c("midpoint", "lower", "upper"),
grid_mode = c("fixed", "refit"),
boundary_mode = c("megaoda_halfopen", "right_closed"),
loo_use_samplerep = FALSE,
loo_return_folds = FALSE,
loo_priors_mode = c("fold", "global")
)Arguments
- x, y
Attribute and class vectors.
- w0
Raw case weights.
- priors_on_eff
Logical.
- degen
Logical.
- K_segments
Number of segments.
- miss_codes
Optional missing codes.
- cut_value_mode
"midpoint","lower","upper".
- grid_mode
"refit" (true per-fold rebuild) or "fixed" (global grid).
- boundary_mode
"megaoda_halfopen" or "right_closed".
- loo_use_samplerep
Include samplerep in fold selection.
- loo_return_folds
Return per-fold rules and debug info.
- loo_priors_mode
"fold" (renorm each fold) or "global" (global wts).