Learn R Programming

emil (version 2.2.3)

extension: Extending the emil framework with user-defined methods

Description

This page describes how to implement custom methods compatible with the functions of the emil framework, most notably fit, tune, and evaluate. Pre-processing and resampling is not covered here, but in the entries pre_process and resample.

Arguments

Calculating performance

See error_fun.

Resampling schemes

See resample.

Pre-processing functions

See pre_process.

Code style guidelines

Names of functions, arguments and variables should be written in underscore separated lower case, singular form, unabbreviated, and American English. Users are encouraged to also follow use this style when wrining extensions. However, the guidelines may be violated in cases where they break the consistency with an incorporated well established package, see for example fit_randomForest which according to the guidelines should be fit_randomforest or fit_random_forest.

A few exceptions to the rule against abbreviations exists, namely fun and function and dir for directory. These are only used for arguments to indicate the type of value that is accepted.

See Also

emil, error_fun, pre_process, resample