- Timestamp:
- 11/07/22 21:29:25 (2 years ago)
- Location:
- framspy
- Files:
-
- 37 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
framspy/evolalg_steps/base/frams_step.py
r1139 r1185 1 from evolalg .base.step import Step1 from evolalg_steps.base.step import Step 2 2 3 3 -
framspy/evolalg_steps/base/lambda_step.py
r1139 r1185 1 from evolalg .base.step import Step1 from evolalg_steps.base.step import Step 2 2 3 3 -
framspy/evolalg_steps/base/union_step.py
r1146 r1185 1 1 from collections import Iterable 2 2 3 from evolalg .base.step import Step3 from evolalg_steps.base.step import Step 4 4 5 5 -
framspy/evolalg_steps/dissimilarity/archive.py
r1182 r1185 2 2 from typing import Union 3 3 4 from evolalg .base.step import Step5 from evolalg .dissimilarity.dissimilarity import Dissimilarity6 from evolalg .dissimilarity.frams_dissimilarity import FramsDissimilarity7 from evolalg .statistics.halloffame_custom import HallOfFameCustom4 from evolalg_steps.base.step import Step 5 from evolalg_steps.dissimilarity.dissimilarity import Dissimilarity 6 from evolalg_steps.dissimilarity.frams_dissimilarity import FramsDissimilarity 7 from evolalg_steps.statistics.halloffame_custom import HallOfFameCustom 8 8 9 9 # TODO not fully tested. Verify if works OK, in particular test adding new individuals. -
framspy/evolalg_steps/dissimilarity/dissimilarity.py
r1182 r1185 1 1 from abc import ABC 2 2 3 from evolalg .base.step import Step3 from evolalg_steps.base.step import Step 4 4 import numpy as np 5 5 -
framspy/evolalg_steps/dissimilarity/frams_dissimilarity.py
r1182 r1185 3 3 import numpy as np 4 4 5 from evolalg .base.frams_step import FramsStep6 from evolalg .dissimilarity.dissimilarity import Dissimilarity5 from evolalg_steps.base.frams_step import FramsStep 6 from evolalg_steps.dissimilarity.dissimilarity import Dissimilarity 7 7 8 8 -
framspy/evolalg_steps/dissimilarity/levenshtein.py
r1182 r1185 1 1 import Levenshtein as lev 2 2 3 from evolalg .dissimilarity.dissimilarity import Dissimilarity3 from evolalg_steps.dissimilarity.dissimilarity import Dissimilarity 4 4 5 5 -
framspy/evolalg_steps/examples/multicriteria.py
r1149 r1185 19 19 20 20 from FramsticksLib import FramsticksLib 21 from evolalg .base.lambda_step import LambdaStep22 from evolalg .base.step import Step23 from evolalg .dissimilarity.frams_dissimilarity import FramsDissimilarity24 from evolalg .dissimilarity.levenshtein import LevenshteinDissimilarity25 from evolalg .experiment import Experiment26 from evolalg .fitness.fitness_step import FitnessStep27 from evolalg .mutation_cross.frams_cross_and_mutate import FramsCrossAndMutate28 from evolalg .population.frams_population import FramsPopulation29 from evolalg .repair.remove.field import FieldRemove30 from evolalg .repair.remove.remove import Remove31 from evolalg .selection.nsga2 import NSGA2Selection32 from evolalg .statistics.halloffame_stats import HallOfFameStatistics33 from evolalg .statistics.multistatistics_deap import MultiStatistics34 from evolalg .statistics.statistics_deap import StatisticsDeap35 from evolalg .base.union_step import UnionStep36 from evolalg .utils.population_save import PopulationSave21 from evolalg_steps.base.lambda_step import LambdaStep 22 from evolalg_steps.base.step import Step 23 from evolalg_steps.dissimilarity.frams_dissimilarity import FramsDissimilarity 24 from evolalg_steps.dissimilarity.levenshtein import LevenshteinDissimilarity 25 from evolalg_steps.experiment import Experiment 26 from evolalg_steps.fitness.fitness_step import FitnessStep 27 from evolalg_steps.mutation_cross.frams_cross_and_mutate import FramsCrossAndMutate 28 from evolalg_steps.population.frams_population import FramsPopulation 29 from evolalg_steps.repair.remove.field import FieldRemove 30 from evolalg_steps.repair.remove.remove import Remove 31 from evolalg_steps.selection.nsga2 import NSGA2Selection 32 from evolalg_steps.statistics.halloffame_stats import HallOfFameStatistics 33 from evolalg_steps.statistics.multistatistics_deap import MultiStatistics 34 from evolalg_steps.statistics.statistics_deap import StatisticsDeap 35 from evolalg_steps.base.union_step import UnionStep 36 from evolalg_steps.utils.population_save import PopulationSave 37 37 38 38 -
framspy/evolalg_steps/examples/niching_novelty.py
r1182 r1185 9 9 10 10 from FramsticksLib import FramsticksLib 11 from evolalg .base.lambda_step import LambdaStep12 from evolalg .base.step import Step13 from evolalg .dissimilarity.archive import ArchiveDissimilarity14 from evolalg .dissimilarity.frams_dissimilarity import FramsDissimilarity15 from evolalg .dissimilarity.levenshtein import LevenshteinDissimilarity16 from evolalg .experiment import Experiment17 from evolalg .fitness.fitness_step import FitnessStep18 from evolalg .mutation_cross.frams_cross_and_mutate import FramsCrossAndMutate19 from evolalg .population.frams_population import FramsPopulation20 from evolalg .repair.remove.field import FieldRemove21 from evolalg .repair.remove.remove import Remove22 from evolalg .selection.tournament import TournamentSelection23 from evolalg .statistics.halloffame_stats import HallOfFameStatistics24 from evolalg .statistics.statistics_deap import StatisticsDeap25 from evolalg .base.union_step import UnionStep26 from evolalg .utils.population_save import PopulationSave11 from evolalg_steps.base.lambda_step import LambdaStep 12 from evolalg_steps.base.step import Step 13 from evolalg_steps.dissimilarity.archive import ArchiveDissimilarity 14 from evolalg_steps.dissimilarity.frams_dissimilarity import FramsDissimilarity 15 from evolalg_steps.dissimilarity.levenshtein import LevenshteinDissimilarity 16 from evolalg_steps.experiment import Experiment 17 from evolalg_steps.fitness.fitness_step import FitnessStep 18 from evolalg_steps.mutation_cross.frams_cross_and_mutate import FramsCrossAndMutate 19 from evolalg_steps.population.frams_population import FramsPopulation 20 from evolalg_steps.repair.remove.field import FieldRemove 21 from evolalg_steps.repair.remove.remove import Remove 22 from evolalg_steps.selection.tournament import TournamentSelection 23 from evolalg_steps.statistics.halloffame_stats import HallOfFameStatistics 24 from evolalg_steps.statistics.statistics_deap import StatisticsDeap 25 from evolalg_steps.base.union_step import UnionStep 26 from evolalg_steps.utils.population_save import PopulationSave 27 27 28 28 … … 226 226 if parsed_args.max_numconnections is not None: 227 227 remove.append(NumConnectionsHigher(parsed_args.max_numconnections)) 228 if parsed_args.max_numgenochars is not-1:228 if parsed_args.max_numgenochars != -1: 229 229 remove.append(NumCharsHigher(parsed_args.max_numgenochars)) 230 230 -
framspy/evolalg_steps/examples/standard.py
r1149 r1185 12 12 13 13 from FramsticksLib import FramsticksLib 14 from evolalg .base.union_step import UnionStep15 from evolalg .experiment import Experiment16 from evolalg .fitness.fitness_step import FitnessStep17 from evolalg .mutation_cross.frams_cross_and_mutate import FramsCrossAndMutate18 from evolalg .population.frams_population import FramsPopulation19 from evolalg .repair.remove.field import FieldRemove20 from evolalg .selection.tournament import TournamentSelection21 from evolalg .statistics.halloffame_stats import HallOfFameStatistics22 from evolalg .statistics.statistics_deap import StatisticsDeap23 from evolalg .utils.population_save import PopulationSave14 from evolalg_steps.base.union_step import UnionStep 15 from evolalg_steps.experiment import Experiment 16 from evolalg_steps.fitness.fitness_step import FitnessStep 17 from evolalg_steps.mutation_cross.frams_cross_and_mutate import FramsCrossAndMutate 18 from evolalg_steps.population.frams_population import FramsPopulation 19 from evolalg_steps.repair.remove.field import FieldRemove 20 from evolalg_steps.selection.tournament import TournamentSelection 21 from evolalg_steps.statistics.halloffame_stats import HallOfFameStatistics 22 from evolalg_steps.statistics.statistics_deap import StatisticsDeap 23 from evolalg_steps.utils.population_save import PopulationSave 24 24 25 25 -
framspy/evolalg_steps/experiment.py
r1139 r1185 2 2 from typing import List, Callable, Union 3 3 4 from evolalg .base.step import Step4 from evolalg_steps.base.step import Step 5 5 import pickle 6 6 import time 7 7 8 from evolalg .base.union_step import UnionStep9 from evolalg .selection.selection import Selection10 from evolalg .utils.stable_generation import StableGeneration8 from evolalg_steps.base.union_step import UnionStep 9 from evolalg_steps.selection.selection import Selection 10 from evolalg_steps.utils.stable_generation import StableGeneration 11 11 import logging 12 12 -
framspy/evolalg_steps/fitness/fitness_step.py
r1139 r1185 1 1 from typing import Dict, List 2 2 3 from evolalg .base.frams_step import FramsStep4 from evolalg .base.individual import Individual3 from evolalg_steps.base.frams_step import FramsStep 4 from evolalg_steps.base.individual import Individual 5 5 import frams 6 6 -
framspy/evolalg_steps/fitness/multiple_evaluations.py
r1139 r1185 1 1 from typing import Dict, List 2 2 3 from evolalg .base.individual import Individual4 from evolalg .fitness.fitness_step import FitnessStep3 from evolalg_steps.base.individual import Individual 4 from evolalg_steps.fitness.fitness_step import FitnessStep 5 5 import copy 6 6 -
framspy/evolalg_steps/mutation_cross/frams_cross.py
r1139 r1185 1 1 import random 2 2 3 from evolalg .base.frams_step import FramsStep4 from evolalg .base.individual import Individual3 from evolalg_steps.base.frams_step import FramsStep 4 from evolalg_steps.base.individual import Individual 5 5 6 6 -
framspy/evolalg_steps/mutation_cross/frams_cross_and_mutate.py
r1139 r1185 1 from evolalg .base.frams_step import FramsStep2 from evolalg .mutation_cross.frams_cross import FramsCross3 from evolalg .mutation_cross.frams_mutation import FramsMutation1 from evolalg_steps.base.frams_step import FramsStep 2 from evolalg_steps.mutation_cross.frams_cross import FramsCross 3 from evolalg_steps.mutation_cross.frams_mutation import FramsMutation 4 4 5 5 -
framspy/evolalg_steps/mutation_cross/frams_cross_or_mutate.py
r1139 r1185 1 from evolalg .base.frams_step import FramsStep2 from evolalg .mutation_cross.frams_cross import FramsCross3 from evolalg .mutation_cross.frams_mutation import FramsMutation1 from evolalg_steps.base.frams_step import FramsStep 2 from evolalg_steps.mutation_cross.frams_cross import FramsCross 3 from evolalg_steps.mutation_cross.frams_mutation import FramsMutation 4 4 import random 5 5 -
framspy/evolalg_steps/mutation_cross/frams_mutation.py
r1139 r1185 1 1 import random 2 2 3 from evolalg .base.frams_step import FramsStep4 from evolalg .base.individual import Individual3 from evolalg_steps.base.frams_step import FramsStep 4 from evolalg_steps.base.individual import Individual 5 5 6 6 -
framspy/evolalg_steps/population/frams_population.py
r1139 r1185 1 from evolalg .base.frams_step import FramsStep2 from evolalg .base.individual import Individual1 from evolalg_steps.base.frams_step import FramsStep 2 from evolalg_steps.base.individual import Individual 3 3 4 4 -
framspy/evolalg_steps/repair/const.py
r1139 r1185 1 1 import copy 2 2 3 from evolalg .repair.repair import Repair3 from evolalg_steps.repair.repair import Repair 4 4 5 5 -
framspy/evolalg_steps/repair/halloffame_repair.py
r1139 r1185 2 2 import random 3 3 4 from evolalg .repair import Repair4 from evolalg_steps.repair import Repair 5 5 6 6 -
framspy/evolalg_steps/repair/multistep.py
r1139 r1185 1 from evolalg .repair.repair import Repair1 from evolalg_steps.repair.repair import Repair 2 2 import copy 3 3 -
framspy/evolalg_steps/repair/mutate.py
r1139 r1185 2 2 import copy 3 3 4 from evolalg .repair.repair import Repair4 from evolalg_steps.repair.repair import Repair 5 5 6 6 -
framspy/evolalg_steps/repair/remove/field.py
r1139 r1185 1 from evolalg .repair.remove.remove import Remove1 from evolalg_steps.repair.remove.remove import Remove 2 2 3 3 -
framspy/evolalg_steps/repair/remove/function.py
r1139 r1185 1 from evolalg_steps.repair.remove.remove import Remove 1 2 2 3 from evolalg.repair.remove.remove import Remove4 3 class LambdaRemove(Remove): 5 4 def __init__(self, func, *args, **kwargs): -
framspy/evolalg_steps/repair/remove/remove.py
r1139 r1185 1 1 from abc import abstractmethod 2 from evolalg .base.step import Step2 from evolalg_steps.base.step import Step 3 3 4 4 -
framspy/evolalg_steps/repair/repair.py
r1139 r1185 2 2 from collections import Iterable 3 3 4 from evolalg .base.step import Step4 from evolalg_steps.base.step import Step 5 5 6 6 -
framspy/evolalg_steps/selection/identity.py
r1139 r1185 1 1 import copy 2 2 3 from evolalg .base.step import Step4 from evolalg .selection.selection import Selection3 from evolalg_steps.base.step import Step 4 from evolalg_steps.selection.selection import Selection 5 5 6 6 -
framspy/evolalg_steps/selection/nsga2.py
r1148 r1185 1 from evolalg .selection.selection import Selection1 from evolalg_steps.selection.selection import Selection 2 2 from deap import tools 3 3 import copy -
framspy/evolalg_steps/selection/selection.py
r1139 r1185 1 1 from abc import abstractmethod 2 2 3 from evolalg .base.step import Step3 from evolalg_steps.base.step import Step 4 4 import copy 5 5 -
framspy/evolalg_steps/selection/tournament.py
r1139 r1185 1 from evolalg .base.individual import Individual1 from evolalg_steps.base.individual import Individual 2 2 from typing import List 3 3 import random 4 4 5 from evolalg .base.step import Step6 from evolalg .selection.selection import Selection5 from evolalg_steps.base.step import Step 6 from evolalg_steps.selection.selection import Selection 7 7 8 8 -
framspy/evolalg_steps/statistics/halloffame_stats.py
r1139 r1185 1 from evolalg .statistics.halloffame_custom import HallOfFameCustom2 from evolalg .statistics.statistics import Statistics1 from evolalg_steps.statistics.halloffame_custom import HallOfFameCustom 2 from evolalg_steps.statistics.statistics import Statistics 3 3 4 4 -
framspy/evolalg_steps/statistics/multistatistics_deap.py
r1147 r1185 1 1 from deap import tools 2 2 3 from evolalg .statistics.statistics import Statistics3 from evolalg_steps.statistics.statistics import Statistics 4 4 5 5 -
framspy/evolalg_steps/statistics/statistics.py
r1139 r1185 1 1 from abc import abstractmethod 2 2 3 from evolalg .base.step import Step3 from evolalg_steps.base.step import Step 4 4 5 5 -
framspy/evolalg_steps/statistics/statistics_deap.py
r1146 r1185 1 1 from deap import tools 2 2 3 from evolalg .statistics.statistics import Statistics3 from evolalg_steps.statistics.statistics import Statistics 4 4 5 5 -
framspy/evolalg_steps/utils/name_propagation.py
r1139 r1185 1 1 from typing import Iterable, Union, List 2 2 3 from evolalg .base.step import Step3 from evolalg_steps.base.step import Step 4 4 import copy 5 5 -
framspy/evolalg_steps/utils/population_save.py
r1139 r1185 1 from evolalg .base.step import Step1 from evolalg_steps.base.step import Step 2 2 import os 3 3 from framsfiles import writer as framswriter -
framspy/evolalg_steps/utils/stable_generation.py
r1113 r1185 1 1 from collections import Iterable 2 2 3 from evolalg .base.step import Step3 from evolalg_steps.base.step import Step 4 4 import copy 5 5 6 from evolalg .base.union_step import UnionStep6 from evolalg_steps.base.union_step import UnionStep 7 7 8 8 -
framspy/run-evolalg_steps-examples.cmd
r1184 r1185 9 9 10 10 rem simple one-criterion evolution from minimalistic example source (examples.standard) 11 python -m evolalg .examples.standard -path %DIR_WITH_FRAMS_LIBRARY% -opt numneurons11 python -m evolalg_steps.examples.standard -path %DIR_WITH_FRAMS_LIBRARY% -opt numneurons 12 12 13 13 14 14 rem as above but "chaining" .sim files, subsequent files overwrite selected parameters 15 python -m evolalg .examples.standard -path %DIR_WITH_FRAMS_LIBRARY% -sim eval-allcriteria.sim;deterministic.sim;sample-period-longest.sim -opt velocity15 python -m evolalg_steps.examples.standard -path %DIR_WITH_FRAMS_LIBRARY% -sim eval-allcriteria.sim;deterministic.sim;sample-period-longest.sim -opt velocity 16 16 17 17 18 18 rem simple one-criterion evolution but more options available in examples.niching_novelty, here: hard limit on the number of Parts and debugging messages 19 python -m evolalg .examples.niching_novelty -path %DIR_WITH_FRAMS_LIBRARY% -opt velocity -max_numparts 6 -debug19 python -m evolalg_steps.examples.niching_novelty -path %DIR_WITH_FRAMS_LIBRARY% -opt velocity -max_numparts 6 -debug 20 20 21 21 22 22 rem "local" niching 23 python -m evolalg .examples.niching_novelty -path %DIR_WITH_FRAMS_LIBRARY% -opt vertpos -fit knn_niching -knn 3 -max_numjoints 8 -popsize 10 -generations 3023 python -m evolalg_steps.examples.niching_novelty -path %DIR_WITH_FRAMS_LIBRARY% -opt vertpos -fit knn_niching -knn 3 -max_numjoints 8 -popsize 10 -generations 30 24 24 25 25 26 26 rem two criteria, '-dissim ...' can also be used to include dissimilarity as one of the criteria 27 python -m evolalg .examples.multicriteria -path %DIR_WITH_FRAMS_LIBRARY% -popsize 40 -generations 10 -opt velocity,vertpos27 python -m evolalg_steps.examples.multicriteria -path %DIR_WITH_FRAMS_LIBRARY% -popsize 40 -generations 10 -opt velocity,vertpos
Note: See TracChangeset
for help on using the changeset viewer.