zachmayer/caretEnsemble — pull request #56 by zachmayer (2014-11-16 22:38:35+00:00)
Title: Major refactor of buildModels

I did a lot of thinking about buildModels this weekend, and I think this new version is much more robust. The basic idea is the arguments are exactly the same as for caret::train, with the exception of an additional modelList and tuneList (we might think a little bit about the names of these arguments)

For example, a simple train model would be:
m <- train(x, y, method="rf")

While a model_list would be:
m <- train(x, y, methodList=c("rf", "glm", "gbm"))

I really like the new syntax. All test pass, and R CMD CHECK passes (though I had to update some old tests to use the new syntax. It also lets us pass parameters through train to the underlying models. I think buildModels is basically now the way all lists of caret models should be built: It's 100% as flexible as caret::train (it even supports formula interface models!)

Additionally, this PR closes the following issues:
#55, #54, #53, #51, #50, #18

I'm very excited about this PR. @jknowles, let me know what you think!!