Ignore:
Timestamp:
08/05/23 00:58:45 (18 months ago)
Author:
Maciej Komosinski
Message:

Added comments, formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/evolalg/structures/individual.py

    r1190 r1272  
    33
    44class 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).
    66
    77    def __init__(self):
Note: See TracChangeset for help on using the changeset viewer.