SmartEngine  1.6.0
Public Attributes | List of all members
SmartEngine::GeneSwapInfo Struct Reference

GeneticTrainer gene swap info More...

#include <GeneticTrainer.h>

Public Attributes

GeneSwapTarget target = GeneSwapTarget::Neuron
 Specifies which weights will be swapped More...
 
float countCrossover = 0.4f
 The number of chromosome 2's weight will swap with chromosome 1 More...
 
float selectionStandardDeviation = 0.4f
 Random parent chromosomes will be chosen to breed with this standard deviation. A lower random value (and std dev) will result in one of the top chromosomes to be chosen. More...
 

Detailed Description

GeneticTrainer gene swap info

Member Data Documentation

◆ countCrossover

float SmartEngine::GeneSwapInfo::countCrossover = 0.4f

The number of chromosome 2's weight will swap with chromosome 1

A value [0..1] equates to a percent of the applicable targets

A negative integer (-Target Count, 0) equates to that exact number of applicable targets.

◆ selectionStandardDeviation

float SmartEngine::GeneSwapInfo::selectionStandardDeviation = 0.4f

Random parent chromosomes will be chosen to breed with this standard deviation. A lower random value (and std dev) will result in one of the top chromosomes to be chosen.

◆ target

GeneSwapTarget SmartEngine::GeneSwapInfo::target = GeneSwapTarget::Neuron

Specifies which weights will be swapped