LearnerLm | R Documentation |
This learner is a wrapper around stats::lm()
in order to perform a
linear regression. There is no implementation for tuning
parameters.
Can be used with
mlexperiments::MLCrossValidation
Implemented methods:
$fit
To fit the model.
$predict
To predict new data with the model.
mlexperiments::MLLearnerBase
-> LearnerLm
new()
Create a new LearnerLm
object.
LearnerLm$new()
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
A new LearnerLm
R6 object.
LearnerLm$new()
clone()
The objects of this class are cloneable with this method.
LearnerLm$clone(deep = FALSE)
deep
Whether to make a deep clone.
stats::lm()
stats::lm()
LearnerLm$new()
## ------------------------------------------------
## Method `LearnerLm$new`
## ------------------------------------------------
LearnerLm$new()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.