| combine.ranges(mlr) | R Documentation |
Convenience function for tune to combine different ranges lists (i.e. lists of named vectors/lists
of possible hyperparameter values).
combine.ranges(...)
... |
Lists of ranges. |
A list of ranges
library(mlbench)
data(Sonar)
cv.i <- make.cv.instance(size = nrow(Sonar), iters = 2)
ct <- make.classif.task("kernlab.svm.classif", data = Sonar, formula = Class~.)
r1 <- list(kernel = "polydot", C = c(1,2), degree = c(2,3))
r2 <- list(kernel = "rbfdot", C = c(1,2), sigma = c(4,6))
tr <- tune(ct, cv.i, ranges = combine.ranges(r1,r2))