Skip to contents

A dials parameter for the regularisation parameter in psvr models. The default range [-2, 10] on the log2 scale (corresponding to approximately 0.25 to 1024) is wider than dials::cost() to accommodate the larger regularisation values typically needed by LS-SVR models.

Usage

cost_psvr(range = c(-2, 10), trans = scales::log2_trans())

Arguments

range

Numeric vector of length 2 on the log2 scale. Default c(-2, 10).

trans

A scales transformation object. Default scales::log2_trans().

Value

A quant_param dials object.

Details

For LS-SVR (m3, m4) models, the static range may still be too narrow on benchmark datasets where the optimum exceeds 10⁴. Prefer cost_psvr_ls_data() in that case.

See also

cost_psvr_ls_data() for a data-driven LS-SVR variant.

Examples

cost_psvr()
#> Cost (quantitative)
#> Transformer: log-2 [1e-100, Inf]
#> Range (transformed scale): [-2, 10]