Spark Online Training by Edureka

train.to.predict.adaptor: Adapts the result of 'train()' to an input to 'predict()'.

Description Usage Arguments Value Examples

Description

At the moment FIT::train() returns a nested list of trained models but FIT::predict() expects to receive them as a flat list. This ugly adaptor is provided in order to prepare for future changes in this implementation detail.

Usage

1

Arguments

models

A collection of trained models as is returned by FIT::train().

Value

A collection of trained models in a form appropriate for the consumption by FIT::predict().

Examples

1
2
3
4
5
6
## Not run: 
models <- FIT::train(..)
models2 <- train.to.predict.adaptor(models)
predictions <- FIT::predict(models2, ..)

## End(Not run)


Search within the FIT package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.