metaSVR is an R Package to integrates Support Vector Regression (SVR)
with various metaheuristic algorithms for automated hyperparameter
tuning which is: cost
, gamma
, and
epsilon
.
This package can be used to do prediction using SVR for either small or big dataset and to do task where required optimal performance, such as forecasting renewable energy production, forecasting air pollutant, or modelling any regression that involve nonlinear patterns.
Features provided in this package include:
radial
,
polynomial
, or sigmoid
sMAPE
,
MAPE
, RMSE
, MAE
cost
,
gamma
, and epsilon
Features provided in this package include:
You can install the development version of metaSVR from GitHub with:
# install.packages("devtools")
::install_github("rechtianaputri/metaSVR") devtools
Here is a simple usage example of metaSVR using synthetic data:
library(metaSVR)
#Generate synthetic data
set.seed(123)
<- matrix(rnorm(100), ncol = 2)
x <- x[,1] * 3 + rnorm(50)
y
# Run SVR Hybird with AOCBO
<- svrHybrid(x_train = x[1:40,], y_train = y[1:40],
result x_test = x[41:50,], y_test = y[41:50],
kernel = "radial", optimizer = "AOCBO",
objective = "SMAPE", is.y.normalize = FALSE,
max_iter = 100, N = 40)
# Access Results
$best_params # show the best parameter result
result$total_iter # show total iteration to optimize
result$model # SVR model optimizing by metaheuristic algorithms
result$time # Time used to generate optimization result
Each metaheuristic is implemented as a standalone optimizer, used by each optimization to improve SVR. For full documentation see the help files:
?svrHybrid
?AO
?CBO
?AOCBO ?loss_calculate
This package was developed by:
To cite the metaSVR package, please use:
citation("metaSVR")
#>
#> To cite package 'metaSVR' in publications use:
#>
#> Arini RP, Kurniawan R, Setiawan IN, Asyraf ZA (2025). _metaSVR:
#> Support Vector Regression with Metaheuristic Algorithms
#> Optimization_. R package version 0.1.0,
#> <https://github.com/rechtianaputri/metaSVR>.
#>
#> Arini RP, Kurniawan R, Setiawan IN, Asyraf ZA (2025). _metaSVR:
#> Support Vector Regression with Metaheuristic Algorithms
#> Optimization_. R package version 0.1.0,
#> <https://github.com/rechtianaputri/metaSVR>.
#>
#> To see these entries in BibTeX format, use 'print(<citation>,
#> bibtex=TRUE)', 'toBibtex(.)', or set
#> 'options(citation.bibtex.max=999)'.