Documentation ¶
Overview ¶
Package tournament provides an implementation of the Selection interface that selects the best agent from a random tournament of n agents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Selection ¶
type Selection[T any] struct { // The number of agents to include in each tournament. TournamentSize int // contains filtered or unexported fields }
Selection is a selection strategy that selects the best agent from a random tournament of agents. It implements Selection.
Click to show internal directories.
Click to hide internal directories.