forked from perone/Pyevolve
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for a new mutator similar to Gaussian but called Gaussi…
…anGradient The following four mutators are new: G1DListMutatorRealGaussianGradient G1DListMutatorIntegerGaussianGradient G2DListMutatorRealGaussianGradient G2DListMutatorIntegerGaussianGradient The main difference between Gaussian and GaussianGradient is that GaussianGradient uses a multiplicative modification rather than an additive. GaussianGradient's mu and sigma are absolute, not relative. So if the default values of mu=2 and std=10 (why not mu=0?) are used, the random gaussian number is a flat number around 2. If we're working on a huge range, like say 0-100000, this is a very small drift. GaussianGradient uses mu=1.0 and std=0.1 to generate a number around 1.0. This is then *multiplied* by the gene to provide subtle drift regardless of how large the range is. 2 new constants added, Mu and Sigma for the GaussianGradient routines.
- Loading branch information
Showing
2 changed files
with
185 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters