Skip to content

Commit

Permalink
removed all setupDEAP calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Immudzen committed Aug 17, 2021
1 parent 01a0f12 commit 5fac6fb
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 116 deletions.
13 changes: 0 additions & 13 deletions CADETMatch/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ def setup(cache, json_path, map_function):
createProgressCSV(cache)
createErrorCSV(cache)
setupTemplates(cache)
setupDeap(cache)


def print_version():
Expand Down Expand Up @@ -350,18 +349,6 @@ def setupTemplates(cache):
experiment["simulation_final"] = template_final


def setupDeap(cache):
"setup the DEAP variables"
searchMethod = cache.settings.get("searchMethod", "UNSGA3")
cache.toolbox = base.Toolbox()
cache.search[searchMethod].setupDEAP(
cache,
creator,
base,
tools,
)


def continue_mcmc(cache, map_function):
if cache.continueMCMC:
json_path = util.setupMCMC(cache)
Expand Down
9 changes: 0 additions & 9 deletions CADETMatch/pymoo_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,3 @@ def run(cache, alg="unsga3"):
util.finish(cache)
sub.graph_corner_process(cache, last=True)
return hof

def setupDEAP(
cache,
creator,
base,
tools,
):
pass

9 changes: 0 additions & 9 deletions CADETMatch/search/altScore.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,3 @@ def run(cache, tools, creator):
util.finish(cache)
sub.graph_corner_process(cache, last=True)
return hof


def setupDEAP(
cache,
creator,
base,
tools,
):
pass
9 changes: 0 additions & 9 deletions CADETMatch/search/gradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,3 @@ def run(cache, tools, creator):
sub.graph_corner_process(cache, last=True)

return hof


def setupDEAP(
cache,
creator,
base,
tools,
):
pass
8 changes: 0 additions & 8 deletions CADETMatch/search/graphSpace.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,3 @@ def run(cache, tools, creator):

return hof


def setupDEAP(
cache,
creator,
base,
tools,
):
pass
31 changes: 0 additions & 31 deletions CADETMatch/search/mcmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1120,37 +1120,6 @@ def getCheckPoint(checkpointFile, cache):
return checkpoint


def setupDEAP(
cache,
creator,
base,
tools,
):
"setup the DEAP variables"
creator.create(
"Individual",
pop.Individual
)

creator.create(
"IndividualMeta",
pop.Individual
)
cache.toolbox.register(
"individualMeta", util.initIndividual, creator.IndividualMeta, cache
)

cache.toolbox.register(
"individual",
util.generateIndividual,
creator.Individual,
len(cache.MIN_VALUE),
cache.MIN_VALUE,
cache.MAX_VALUE,
cache,
)


def process(
population_order,
cache,
Expand Down
10 changes: 0 additions & 10 deletions CADETMatch/search/multistart.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,3 @@ def run(cache, tools, creator):
sub.graph_corner_process(cache, last=True)

return hof


def setupDEAP(
cache,
creator,
base,
tools,
):
"setup the DEAP variables"
pass
9 changes: 0 additions & 9 deletions CADETMatch/search/nsga3.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@
def run(cache, tools, creator):
"run the parameter estimation"
return CADETMatch.pymoo_config.run(cache, 'nsga3')


def setupDEAP(
cache,
creator,
base,
tools,
):
pass
9 changes: 0 additions & 9 deletions CADETMatch/search/scoretest.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,3 @@ def run(cache, tools, creator):
util.finish(cache)
sub.graph_corner_process(cache, last=True)
return hof


def setupDEAP(
cache,
creator,
base,
tools,
):
pass
9 changes: 0 additions & 9 deletions CADETMatch/search/unsga3.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,5 @@
def run(cache, tools, creator):
"run the parameter estimation"
return CADETMatch.pymoo_config.run(cache, 'unsga3')


def setupDEAP(
cache,
creator,
base,
tools,
):
pass


0 comments on commit 5fac6fb

Please sign in to comment.