Update or Re-fit a SA or GA Model
update
allows a user to over-ride the search iteration selection
process.
## S3 method for class 'safs' update(object, iter, x, y, ...)
Max Kuhn
## Not run: set.seed(1) train_data <- twoClassSim(100, noiseVars = 10) test_data <- twoClassSim(10, noiseVars = 10) ## A short example ctrl <- safsControl(functions = rfSA, method = "cv", number = 3) rf_search <- safs(x = train_data[, -ncol(train_data)], y = train_data$Class, iters = 3, safsControl = ctrl) rf_search2 <- update(rf_search, iter = 1, x = train_data[, -ncol(train_data)], y = train_data$Class) rf_search2 ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.