perone / Pyevolve

Pyevolve
http://pyevolve.sourceforge.net/wordpress/
313 stars 107 forks source link

[Question] Mutation #65

Open cristianocca opened 9 years ago

cristianocca commented 9 years ago

The Mutators.G1DListMutatorIntegerRange only seems to accept one mutation probability, which seems like it is the one that decides if a value on the chromosome should be mutated or not.

However, shouldn't be there also another probability that defines if the mutation should be applied at all or not? I think that's how other libraries work but I have no idea if that's an improvement or not.

cristianocca commented 9 years ago

As an option to also set the chance of an individual to mutate you can use the rand_apply option from FunctionSlot and have a dummy function with 1 - the probability you want to use.