Skip to contents

Unified entry point

psvr() is the single primary fitter for all four model families. Selects via loss = "mape" | "rmspe" and sym = NULL | +1L | -1L.

psvr()
Fit a percentage-error SVR / LS-SVR model
predict(<psvr_fit>)
Predict from a fitted psvr_fit model
print(<psvr_fit>)
Print method for psvr_fit objects
coef(<psvr_fit>)
Extract coefficients from a psvr_fit model
summary(<psvr_fit>)
Summary method for psvr_fit objects

Kernel factory

Shared kernel interface used by all four models.

make_kernel()
Create a kernel function

tidymodels / parsnip interface — ε-SVR with MAPE (Model 1)

Parsnip model specifications for Model 1 (one per kernel type).

psvr_mape_rbf() psvr_mape_poly() psvr_mape_linear()
Parsnip model specs: epsilon-SVR with MAPE loss (Model 1)

tidymodels / parsnip interface — Symmetric ε-SVR with MAPE (Model 2)

Parsnip model specifications for Model 2 (one per kernel type).

psvr_mape_sym_rbf() psvr_mape_sym_poly() psvr_mape_sym_linear()
Parsnip model specs: symmetric epsilon-SVR with MAPE loss (Model 2)

tidymodels / parsnip interface — LS-SVR with RMSPE (Model 3)

Parsnip model specifications for Model 3 (one per kernel type).

psvr_rmspe_rbf() psvr_rmspe_poly() psvr_rmspe_linear()
Parsnip model specs: LS-SVR with RMSPE loss (Model 3)

tidymodels / parsnip interface — Symmetric LS-SVR with RMSPE (Model 4)

Parsnip model specifications for Model 4 (one per kernel type).

psvr_rmspe_sym_rbf() psvr_rmspe_sym_poly() psvr_rmspe_sym_linear()
Parsnip model specs: symmetric LS-SVR with RMSPE loss (Model 4)

Hyperparameter utilities

Custom dials parameters and tuning helpers for psvr models.

margin_percentage()
Insensitivity margin in percentage units
sigma_heuristic()
Median-distance heuristic for RBF kernel bandwidth
rbf_sigma_psvr()
RBF sigma parameter for psvr models
rbf_sigma_psvr_data()
RBF sigma parameter with data-driven range for psvr models
psvr_option_add()
Apply data-driven rbf_sigma to all psvr workflows in a workflow set
psvr_option_add_cost_ls()
Apply data-driven LS-SVR cost range to all m3/m4 workflows in a workflow set
cost_psvr()
Cost parameter with extended range for psvr models
cost_psvr_ls_data()
Data-driven cost range for LS-SVR psvr models
sym_type_param()
Dials parameter for symmetry type

Deprecated API

Soft-deprecated wrappers retained for backwards compatibility. New code should use psvr(). Scheduled removal: v0.2.0+.

mape_svr()
Fit epsilon-SVR with MAPE loss (deprecated)
mape_sym_svr()
Fit symmetric epsilon-SVR with MAPE loss (deprecated)
rmspe_lssvr()
Fit LS-SVR with RMSPE loss (deprecated)
rmspe_sym_lssvr()
Fit symmetric LS-SVR with RMSPE loss (deprecated)
predict(<psvr_mape>)
Predict from a fitted epsilon-SVR with MAPE model
predict(<psvr_mape_sym>)
Predict from a fitted symmetric epsilon-SVR with MAPE model
predict(<psvr_rmspe>)
Predict from a fitted LS-SVR with RMSPE model
predict(<psvr_rmspe_sym>)
Predict from a fitted symmetric LS-SVR with RMSPE model
print(<psvr_mape>)
Print method for psvr_mape objects
print(<psvr_mape_sym>)
Print method for psvr_mape_sym objects
print(<psvr_rmspe>)
Print method for psvr_rmspe objects
print(<psvr_rmspe_sym>)
Print method for psvr_rmspe_sym objects
coef(<psvr_mape>)
Extract coefficients from a psvr_mape model
coef(<psvr_mape_sym>)
Extract coefficients from a psvr_mape_sym model
coef(<psvr_rmspe>)
Extract coefficients from a psvr_rmspe model
coef(<psvr_rmspe_sym>)
Extract coefficients from a psvr_rmspe_sym model