Learn R Programming

mlexperiments (version 0.0.5)

LearnerGlm: LearnerGlm R6 class

Description

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

Arguments

Super class

mlexperiments::MLLearnerBase -> LearnerGlm

Methods

Inherited methods


Method new()

Create a new LearnerGlm object.

Usage

LearnerGlm$new()

Details

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

Returns

A new LearnerGlm R6 object.

Examples

LearnerGlm$new()


Method clone()

The objects of this class are cloneable with this method.

Usage

LearnerGlm$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

Can be used with

  • MLCrossValidation

Implemented methods:

  • $fit To fit the model.

  • $predict To predict new data with the model.

See Also

Examples

Run this code
LearnerGlm$new()


## ------------------------------------------------
## Method `LearnerGlm$new`
## ------------------------------------------------

LearnerGlm$new()

Run the code above in your browser using DataLab