ltc_mutations (macula_tweann v0.18.1)
View SourceLTC (Liquid Time-Constant) mutation operators for neural network evolution.
This module provides mutations specific to LTC/CfC neurons: - mutate_neuron_type: Switch between standard/ltc/cfc - mutate_time_constant: Perturb tau (response speed) - mutate_state_bound: Perturb state bound A - mutate_ltc_weights: Perturb backbone/head network weights
LTC neurons have adaptive temporal dynamics that can be evolved.
Summary
Functions
Mutate backbone/head weights of a random LTC/CfC neuron.
Mutate neuron type of a random neuron.
Mutate state bound (A) of a random LTC/CfC neuron.
Mutate time constant (tau) of a random LTC/CfC neuron.
Functions
Mutate backbone/head weights of a random LTC/CfC neuron.
Perturbs the learned weights in the LTC f() backbone and h() head networks. These weights control the adaptive time constant and target state.
Mutate neuron type of a random neuron.
Changes neuron type between standard, ltc, and cfc. This allows networks to evolve which neurons use temporal dynamics.
Mutate state bound (A) of a random LTC/CfC neuron.
Perturbs the state bound which limits internal state magnitude. Larger bounds allow more dynamic range but may be less stable.
Mutate time constant (tau) of a random LTC/CfC neuron.
Perturbs the base time constant which controls response speed. Smaller tau = faster response, larger tau = slower/smoother response.