LearnerGlm: LearnerGlm R6 class

LearnerGlmR Documentation

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.

Details

Can be used with

  • MLCrossValidation

Implemented methods:

  • ⁠$fit⁠ To fit the model.

  • ⁠$predict⁠ To predict new data with the model.

Super class

mlexperiments::MLLearnerBase -> LearnerGlm

Methods

Public 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.

See Also

stats::glm()

stats::glm()

Examples

LearnerGlm$new()


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

LearnerGlm$new()


mlexperiments documentation built on April 12, 2025, 1:40 a.m.