Adapts the result of train() to an input to predict().
At the moment
FIT::train() returns a nested
list of trained models but
to receive them as a flat list.
This ugly adaptor is provided
in order to prepare for future changes in this implementation detail.
A collection of trained models as is returned by
A collection of trained models in a form appropriate
for the consumption by
1 2 3 4 5 6
## Not run: models <- FIT::train(..) models2 <- train.to.predict.adaptor(models) predictions <- FIT::predict(models2, ..) ## End(Not run)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.