
Fit wrappers for parsnip engine dispatch
psvr-fit-wrappers.RdBridge functions called by parsnip when fitting psvr model specs.
Exported only because parsnip's resolver requires it; not intended
for direct use. Call psvr() instead for direct fitting.
Usage
psvr_mape_rbf_fit(x, y, C, eps, rbf_sigma = 1, tol = 1e-05)
psvr_mape_poly_fit(x, y, C, eps, degree = 3L, scale_factor = 1, tol = 1e-05)
psvr_mape_linear_fit(x, y, C, eps, tol = 1e-05)
psvr_mape_sym_rbf_fit(
x,
y,
C,
eps,
rbf_sigma = 1,
sym_type = "even",
tol = 1e-05
)
psvr_mape_sym_poly_fit(
x,
y,
C,
eps,
degree = 3L,
scale_factor = 1,
a = 1L,
tol = 1e-05
)
psvr_mape_sym_linear_fit(x, y, C, eps, a = 1L, tol = 1e-05)
psvr_rmspe_rbf_fit(x, y, gamma, rbf_sigma = 1, precondition = "auto")
psvr_rmspe_poly_fit(
x,
y,
gamma,
degree = 3L,
scale_factor = 1,
precondition = "auto"
)
psvr_rmspe_linear_fit(x, y, gamma, precondition = "auto")
psvr_rmspe_sym_rbf_fit(
x,
y,
gamma,
rbf_sigma = 1,
sym_type = "even",
precondition = "auto"
)
psvr_rmspe_sym_poly_fit(
x,
y,
gamma,
degree = 3L,
scale_factor = 1,
a = 1L,
precondition = "auto"
)
psvr_rmspe_sym_linear_fit(x, y, gamma, a = 1L, precondition = "auto")Arguments
- x
Numeric predictor matrix (parsnip matrix interface).
- y
Numeric outcome vector (strictly positive).
- C
Regularization parameter for MAPE models.
- eps
Epsilon tube half-width for MAPE models.
- rbf_sigma
RBF bandwidth σ > 0.
- tol
Solver zero-threshold.
- degree
Polynomial degree ≥ 1.
- scale_factor
Polynomial constant term (coef₀).
- sym_type
Symmetry type (
"even"or"odd") for symmetric models; translated toa = 1Lora = -1Lbefore calling the solver.- gamma
Regularization parameter for RMSPE models.
- precondition
Optional symmetric rescaling preconditioner for the RMSPE LS-SVR fitters. See
rmspe_lssvr()for accepted values and semantics.