Ignore:
Timestamp:
08/31/22 00:05:43 (5 weeks ago)
Author:
Maciej Komosinski
Message:

More concise code and less redundancy in dissimilarity classes, added support for archive of genotypes, added hard limit on the number of genotype chars

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/evolalg/dissimilarity/levenshtein.py

    r1139 r1182  
    1818                gen_dis.append(lev.distance(p.genotype, p2.genotype))
    1919            dissim.append(gen_dis)
    20         dissim = self.reduce(dissim)
     20        dissim = self.reduce(dissim, self.fn_reduce, self.knn)
    2121        for d, ind in zip(dissim, population):
    2222            setattr(ind, self.output_field, d)
Note: See TracChangeset for help on using the changeset viewer.