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")
devtools::install_github("rechtianaputri/metaSVR")
Here is a simple usage example of metaSVR using synthetic data:
library(metaSVR)
#Generate synthetic data
set.seed(123)
x <- matrix(rnorm(100), ncol = 2)
y <- x[,1] * 3 + rnorm(50)
# Run SVR Hybird with AOCBO
result <- svrHybrid(x_train = x[1:40,], y_train = y[1:40],
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
result$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
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)'.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.