fetch_model_container: Fetch a tundra model container.

Description Usage Arguments Details Value

View source: R/model_stage.r

Description

The container is fetched either from the tundra package or from the lib/classifiers directory in the syberia project.

Usage

1

Arguments

type

character. The model keyword. This function will attempt to fetch the associated container construction function (with parameters munge_procedure, default_args, and internal from either (1) the tundra package, or (2) your syberia project's lib/classifiers directory (see description).

Details

If there is no tundra model associated to the keyword (like 'gbm' or 'regularization'), you must place a function called train and a function called predict in the an R file with the same name as the keyword for your classification. For example, if you are implementing least-angle regression, you could define lib/classifiers/lar.R and from your syberia model use 'lar' for your model keyword.

Value

A container construction function (with parameters munge_procedure, default_args, and internal which takes these and return a tundra_container object with a train and predict method.


robertzk/syberiaStages documentation built on May 27, 2019, 11:38 a.m.