Closed tmastny closed 6 years ago
train
object attribute control has a list of parameters that go into the trainControl
caret function. Could use those to recreate that aspect of the model..
Also, train$call
is the actual formula used.
EDIT: I haven't figured out how to capture the train$call
as a string. It seems to be a special type.
Note that the result from train$call
is not even directly usable, since it returns train.formula
which doesn't work as a script.
Features I'd want from auto-document:
trainControl
function with only the non-default arguments suppliedtrain
function with appropriate methods and trControlProblems:
createFolds
function call (seems unlikely).
trainControl
seed determine the folds? I think soClosed in favor of #21
add a function that takes a model and constructs an
.R
script that recreates the model for documentation.