Forward Feature selection implementation


I want to use simple forward feature selectionin RStudio, starting with an empty set and then adding one feature at each stage. I was using CAST package, but it is taking forever to complete as it starts with trying combination of 2 features. Can you please guide me which package i can use to implement forward feature selection?

The one i am using already is;

ffs {CAST}

  method = "rf",
  metric = ifelse(is.factor(response), "Accuracy", "RMSE"),
  maximize = ifelse(metric == "RMSE", FALSE, TRUE),
  globalval = FALSE,
  withinSE = FALSE,
  minVar = 2,
  trControl = caret::trainControl(),
  tuneLength = 3,
  tuneGrid = NULL,
  seed = sample(1:1000, 1),
  verbose = TRUE,

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.