Skip to content

Commit

Permalink
fixed seed for nsga3, unsga3
Browse files Browse the repository at this point in the history
  • Loading branch information
Immudzen committed Aug 17, 2021
1 parent e6b4957 commit d7047d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CADETMatch.pyproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ProjectTypeGuids>{888888a0-9f3d-457c-b088-3a5042f75d52}</ProjectTypeGuids>
<LaunchProvider>Standard Python launcher</LaunchProvider>
<InterpreterId>CondaEnv|CondaEnv|pymoo_devel</InterpreterId>
<CommandLineArguments>"F:\ryzen_pymoo_unsga3\search\scoretest\dextran.json" 12</CommandLineArguments>
<CommandLineArguments>"F:\ryzen_pymoo_unsga3\search\nsga3\dextran.json" 12</CommandLineArguments>
<EnableNativeCodeDebugging>False</EnableNativeCodeDebugging>
<SuppressConfigureTestFrameworkPrompt>true</SuppressConfigureTestFrameworkPrompt>
<InterpreterArguments>
Expand Down
7 changes: 3 additions & 4 deletions CADETMatch/pymoo_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,11 @@ def run(cache, alg="unsga3"):

if "seeds" in cache.settings:
seed_pop = [
pop.Individual(
[f(v) for f, v in zip(cache.settings["transform"], sublist)]
)
[f(v) for f, v in zip(cache.settings["transform"], sublist)]
for sublist in cache.settings["seeds"]
]
init_pop.extend(seed_pop)
init_pop = numpy.concatenate([init_pop, numpy.array(seed_pop)], axis=0)
#init_pop.extend(seed_pop)


path = Path(cache.settings["resultsDirBase"], cache.settings["csv"])
Expand Down

0 comments on commit d7047d1

Please sign in to comment.