tmastny / leadr

https://tmastny.github.io/leadr/
MIT License
26 stars 2 forks source link

Auto-document #5

Closed tmastny closed 6 years ago

tmastny commented 6 years ago

add a function that takes a model and constructs an .R script that recreates the model for documentation.

tmastny commented 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.

tmastny commented 6 years ago

Note that the result from train$call is not even directly usable, since it returns train.formula which doesn't work as a script.

tmastny commented 6 years ago

Features I'd want from auto-document:

Problems:

tmastny commented 6 years ago

Closed in favor of #21