2929b0f3738c43f52c32a37bf40791c88e3d9929,glyph/gp/individual.py,AExpressionTree,create_population,#Any#Any#Any#Any#Any#,268
Before Change
toolbox = deap.base.Toolbox()
toolbox.register("expr", gen_method, pset=cls.pset, min_=min, max_=max)
toolbox.register("individual", deap.tools.initIterate, cls, toolbox.expr)
toolbox.register("population", deap.tools.initRepeat, list, toolbox.individual)
return toolbox.population(n=size)
def nd_phenotype(nd_tree, backend=sympy_phenotype):
After Change
Create a list of individuals of class Individual.
if size < 0:
raise RuntimeError("Cannot create population of size {}".format(size))
return [cls.create(gen_method=gen_method, min=min, max=max) for _ in range(size)]
def nd_phenotype(nd_tree, backend=sympy_phenotype):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: Ambrosys/glyph
Commit Name: 2929b0f3738c43f52c32a37bf40791c88e3d9929
Time: 2017-02-24
Author: mquade@uni-potsdam.de
File Name: glyph/gp/individual.py
Class Name: AExpressionTree
Method Name: create_population
Project Name: uber/petastorm
Commit Name: a31ae1708b62413c94ffae9fb6aab21b37f78212
Time: 2020-03-12
Author: weichen.xu@databricks.com
File Name: petastorm/spark/spark_dataset_converter.py
Class Name:
Method Name: _cache_df_or_retrieve_cache_path
Project Name: snipsco/snips-nlu
Commit Name: d88e1e112a70f7cd5eea03298f07189681520f47
Time: 2019-01-02
Author: adrien.ball@snips.ai
File Name: snips_nlu/pipeline/units_registry.py
Class Name:
Method Name: register_processing_unit