Changeset 1272 for framspy/evolalg/structures
- Timestamp:
- 08/05/23 00:58:45 (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/evolalg/structures/individual.py
r1190 r1272 3 3 4 4 class Individual: 5 only_positive_fitness = True 5 only_positive_fitness = True # Note: when using diversification techniques (e.g. niching), setting this to False and allowing negative fitness values requires verifying/improving diversification formulas. Dividing fitness by similarity (or multiplying by diversity) may have undesired consequences when fitness can be both positive and negative (e.g. low similarity may make positive fitness values higher and negative fitness values lower, while the intention would be to improve fitness for low similarity). 6 6 7 7 def __init__(self):
Note: See TracChangeset
for help on using the changeset viewer.