Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
ErrMissingActivations = errors.New("activation mutator requires list of possible activation functions")
)
Known errors
Functions ¶
This section is empty.
Types ¶
type Activation ¶
type Activation struct { ReplaceActivationProbability float64 Activations []evo.Activation }
Activation is a helper that mutates the activation value of nodes
func (Activation) Mutate ¶
func (a Activation) Mutate(g *evo.Genome) (err error)
Mutate the the activation values of the genomes based on the settings in the helper.
type Bias ¶
type Bias struct { MutateBiasProbability float64 ReplaceBiasProbability float64 BiasPower float64 MaxBias float64 }
Bias is a helper that mutates the bias value of nodes
func (Bias) Mutate ¶
Mutate the the bias values of the genomes based on the settings in the helper. In Stanley's version of NEAT, bias is a separate node type with connections to other nodes. In evo, bias is a property of the node. Effectively, though, they are the same.
type Complexify ¶
type Complexify struct { AddNodeProbability float64 AddConnProbability float64 WeightPower float64 MaxWeight float64 BiasPower float64 MaxBias float64 HiddenActivation evo.Activation DisableSortCheck bool }
Complexify mutates a genome by adding to its structure
func (Complexify) Mutate ¶
func (m Complexify) Mutate(g *evo.Genome) (err error)
Mutate a genome by adding nodes or connections
type Trait ¶
Trait is a helper that mutates the trait value of nodes
type Weight ¶
type Weight struct { MutateWeightProbability float64 // The probability that the connection's weight will be mutated ReplaceWeightProbability float64 // The probability that, if being mutated, the weight will be replaced WeightPower float64 MaxWeight float64 }
Weight mutates the genome's connection weights
Source Files
¶
- activation.go
- bias.go
- complexify.go
- trait.go
- weight.go