class

Crowbar::MutatorPool

Inherits Reference < Object

Registry and adaptive selection engine for mutators. Supports both adaptive score weighting and UCB1 Multi-Armed Bandit credit assignment.

Constructors

Instance methods

bandit
Source
bandit=(bandit : Evolution::Bandit | Nil)
Source
find!(name : String) : Mutator

Finds mutator by name or raises an exception

Source
find?(name : String) : Mutator | Nil

Finds mutator by short or full name or alias

Source
mutate(context : Context, buffer : Buffer, target_range : Tuple(Int32, Int32) | Nil = nil, preferred_mutator : Mutator | Nil = nil, bandit_override : Evolution::Bandit | Nil = nil) : Bool

Executes a mutation round, dynamically adjusting the selected mutator's score

Source
mutators
Source
register(mutator : Mutator)
Source
register_defaults
Source
select_mutator(prng : PRNG, bandit_override : Evolution::Bandit | Nil = nil) : Mutator

Selects a mutator based on weighted distribution or UCB1 bandit score

Source
use_bandit
Source
use_bandit=(use_bandit : Bool)
Source