Skip to contents

LearningStrategy

LearningStrategy

Details

Represents a reusable learning strategy composed of a partner selection function, an interaction function, and a descriptive label.

Methods


Method new()

Create a new LearningStrategy

Usage

LearningStrategy$new(partner_selection, interaction, model_step, label)

Arguments

partner_selection

Function to select the teacher (or NULL)

interaction

Function to define the interaction (or NULL)

label

A string label for this strategy


Method get_partner_selection()

Get the partner selection function

Usage

LearningStrategy$get_partner_selection()

Returns

Function


Method get_interaction()

Get the interaction function

Usage

LearningStrategy$get_interaction()

Returns

Function


Method get_model_step()

Get the interaction function

Usage

LearningStrategy$get_model_step()

Returns

Function


Method get_label()

Get the strategy label

Usage

LearningStrategy$get_label()

Returns

Character string


Method clone()

The objects of this class are cloneable with this method.

Usage

LearningStrategy$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.