Changeset 1308 for framspy/evolalg/frams_base
- Timestamp:
- 06/05/24 22:35:50 (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/evolalg/frams_base/experiment_frams_niching.py
r1304 r1308 7 7 8 8 class ExperimentFramsNiching(ExperimentFrams, ExperimentNiching): 9 def __init__(self, frams_lib, optimization_criteria, hof_size, popsize, constraints, normalize, dissim, fit, genformat, archive_size, save_only_best, knn_niching, knn_nslc ) -> None:9 def __init__(self, frams_lib, optimization_criteria, hof_size, popsize, constraints, normalize, dissim, fit, genformat, archive_size, save_only_best, knn_niching, knn_nslc, crowding_dissim=None) -> None: 10 10 ExperimentFrams.__init__(self, hof_size=hof_size, 11 11 popsize=popsize, … … 23 23 archive_size=archive_size, 24 24 knn_niching=knn_niching, 25 knn_nslc=knn_nslc 25 knn_nslc=knn_nslc, 26 crowding_dissim=crowding_dissim 26 27 ) 27 28 self.dissim = dissim … … 47 48 def dissimilarity(self, population): 48 49 return self.frams_lib.dissimilarity([i.genotype for i in population], self.dissim) 50 51 def crowding_distance_dissimilarity(self, population): 52 return self.frams_lib.dissimilarity([i.genotype for i in population], self.crowding_dissim) 49 53 50 54
Note: See TracChangeset
for help on using the changeset viewer.