Selects the most successful neighbor (highest fitness) to learn from. Ties are broken at random.
Usage
success_bias_select_teacher(learner, model)
Arguments
- learner
An Agent instance evaluating neighbors.
- model
An AgentBasedModel instance (not used directly here, but included for consistency with other learning functions).
Value
An Agent object: the selected teacher.
Examples
model <- ?
learner <- model$get_agent(1)
teacher <- success_bias_select_teacher(learner, model)
#> Error: object 'learner' not found