Learn R Programming

mlexperiments (version 0.0.5)

LearnerLm: LearnerLm R6 class

Description

This learner is a wrapper around stats::lm() in order to perform a linear regression. There is no implementation for tuning parameters.

Arguments

Super class

mlexperiments::MLLearnerBase -> LearnerLm

Methods

Inherited methods


Method new()

Create a new LearnerLm object.

Usage

LearnerLm$new()

Details

This learner is a wrapper around stats::lm() in order to perform a linear regression. There is no implementation for tuning parameters, thus the only experiment to use LearnerLm for is MLCrossValidation

Returns

A new LearnerLm R6 object.

Examples

LearnerLm$new()


Method clone()

The objects of this class are cloneable with this method.

Usage

LearnerLm$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

Can be used with

  • mlexperiments::MLCrossValidation

Implemented methods:

  • $fit To fit the model.

  • $predict To predict new data with the model.

See Also

Examples

Run this code
LearnerLm$new()


## ------------------------------------------------
## Method `LearnerLm$new`
## ------------------------------------------------

LearnerLm$new()

Run the code above in your browser using DataLab