MCPcopy Index your code

hub / github.com/DEAP/deap / functions

Functions649 in github.com/DEAP/deap

Functionfunction1
r"""The function1 peak function to be used with scenario 1. :math:`f(\mathbf{x}) = \\frac{h}{1 + w \sqrt{\sum_{i=1}^N (x_i - p_i)^2}}`
deap/benchmarks/movingpeaks.py:53
FunctiongenFull
Generate an expression where each leaf has the same depth between *min* and *max*. :param pset: Primitive set from which primitives are selec
deap/gp.py:533
FunctiongenGrow
Generate an expression where each leaf might have a different depth between *min* and *max*. :param pset: Primitive set from which primitives
deap/gp.py:553
FunctiongenNetwork
(dimension, min_size, max_size)
examples/coev/hillis.py:38
FunctiongenNetwork
(dimension, min_size, max_size)
examples/ga/evosn.py:36
FunctiongenNetwork
(dimension, min_size, max_size)
doc/code/tutorials/part_4/4_4_Using_Cpp_NSGA.py:35
FunctiongenNetwork
(dimension, min_size, max_size)
doc/code/tutorials/part_4/4_5_home_made_eval_func.py:41
FunctiongenRamped
.. deprecated:: 1.0 The function has been renamed. Use :func:`~deap.gp.genHalfAndHalf` instead.
deap/gp.py:593
Methodgenealogy
(index, depth)
deap/tools/support.py:134
Functiongenerate
(pclass, dim, pmin, pmax, smin, smax)
examples/pso/multiswarm.py:53
Functiongenerate
(pclass, dim, pmin, pmax, smin, smax)
examples/pso/speciation.py:52
Functiongenerate
(size, pmin, pmax, smin, smax)
examples/pso/basic.py:31
Functiongenerate
(size, pmin, pmax, smin, smax)
examples/pso/basic_numpy.py:30
Methodgenerate
r"""Generate a population of :math:`\lambda` individuals of type *ind_init* from the current strategy. :param ind_init: A function ob
deap/cma.py:281
Methodgenerate
r"""Generate a population of :math:`\lambda` individuals of type *ind_init* from the current strategy. :param ind_init: A function ob
deap/cma.py:397
Methodgenerate
Generate a population of :math:`\lambda` individuals of type *ind_init* from the current strategy. :param ind_init: A function object
deap/cma.py:668
Methodgenerate
(self, ind_init)
examples/eda/emna.py:47
FunctiongenerateES
(icls, scls, size, imin, imax, smin, smax)
examples/es/fctmin.py:38
MethodgetGenealogy
Provide the genealogy tree of an *individual*. The individual must have an attribute :attr:`history_index` as defined by :func:`~deap.
deap/tools/support.py:117
MethodgetLength
Returns the length of the i-th list.
deap/tools/_hypervolume/pyhv.py:251
FunctiongetParasite
(dimension)
examples/coev/hillis.py:42
MethodgetValues
(self)
deap/base.py:184
Functiongraph
Construct the graph of a tree expression. The tree expression must be valid. It returns in order a node list, an edge list, and a dictionary of
deap/gp.py:1152
Functiongriewank
r"""Griewank test objective function. .. list-table:: :widths: 10 50 :stub-columns: 1 * - Type - minimization
deap/benchmarks/__init__.py:205
Functiongriewank_arg0
(sol)
doc/code/benchmarks/griewank.py:12
Functionh1
r""" Simple two-dimensional function containing several local maxima. From: The Merits of a Parallel Genetic Algorithm in Solving Hard Optimiz
deap/benchmarks/__init__.py:126
Functionh1_arg0
(sol)
doc/code/benchmarks/h1.py:13
Functionharm
Implement bloat control on a GP evolution using HARM-GP, as defined in [Gardner2015]. It is implemented in the form of an evolution algorithm
deap/gp.py:952
Functionhimmelblau
r"""The Himmelblau's function is multimodal with 4 defined minimums in :math:`[-6, 6]^2`. .. list-table:: :widths: 10 50 :stub-
deap/benchmarks/__init__.py:329
Functionhimmelblau_arg0
(sol)
doc/code/benchmarks/himmelblau.py:13
Functionhypervolume
Return the hypervolume of a *front*. If the *ref* point is not given, the worst value for each objective +1 is used. :param front: The popula
deap/benchmarks/tools.py:306
Functionidentity
Returns directly the argument *obj*.
deap/tools/emo.py:204
Functionidentity
Returns directly the argument *obj*.
deap/tools/support.py:9
Methodif_food_ahead
(self, out1, out2)
examples/gp/ant.py:122
Functionif_then_else
(condition, out1, out2)
examples/gp/ant.py:72
Functionif_then_else
(input, output1, output2)
examples/gp/spambase.py:60
Functionif_then_else
(condition, out1, out2)
examples/gp/multiplexer.py:27
FunctioninitCycle
Call the function *container* with a generator function corresponding to the calling *n* times the functions present in *seq_func*. :param co
deap/tools/init.py:54
FunctioninitES
(icls, scls, size, imin, imax, smin, smax)
doc/code/tutorials/part_2/2_2_4_evolution_strategy.py:14
FunctioninitIndividual
(icls, content)
doc/code/tutorials/part_2/2_3_5_seeding_a_population.py:10
FunctioninitIterate
Call the function *container* with an iterable as its only argument. The iterable must be returned by the method or the object *generator*.
deap/tools/init.py:26
FunctioninitParticle
(pcls, size, pmin, pmax, smin, smax)
doc/code/tutorials/part_2/2_3_3_swarm.py:13
FunctioninitParticle
(pcls, size, pmin, pmax, smin, smax)
doc/code/tutorials/part_2/2_2_5_particle.py:12
FunctioninitPopulation
(pcls, ind_init, filename)
doc/code/tutorials/part_2/2_3_5_seeding_a_population.py:13
FunctioninitRepeat
Call the function *func* *n* times and return the results in a container type `container` :param container: The type to put in the data from
deap/tools/init.py:1
FunctioninitTargetSet
Initialize a target set with noisy string to match based on the schematas provided.
examples/coev/coop_base.py:31
Methodinit_type
Replace the __init__ function of the new type, in order to add attributes that were defined with **kargs to the instance.
deap/creator.py:117
Functionkotanchek
r"""Kotanchek benchmark function. .. list-table:: :widths: 10 50 :stub-columns: 1 * - Range - :math:`\mathbf{x} \i
deap/benchmarks/gp.py:19
Functionkursawe
r"""Kursawe multiobjective function. :math:`f_{\text{Kursawe}1}(\mathbf{x}) = \sum_{i=1}^{N-1} -10 e^{-0.2 \sqrt{x_i^2 + x_{i+1}^2} }` :math
deap/benchmarks/__init__.py:380
Methodlambda_
(self)
deap/cma.py:647
Methodlength
Return the number of comparison-swap used.
examples/ga/sortingnetwork.py:119
Methodlength
Return the number of comparison-swap used.
doc/code/tutorials/part_4/sortingnetwork.py:125
Functionmain
(procid, pipein, pipeout, sync, seed=None)
examples/ga/onemax_island.py:82
FunctionmatchSetContribution
Compute the contribution of the string at *index* in the match set.
examples/coev/coop_base.py:76
FunctionmatchSetStrength
Compute the match strength of a set of strings on the target set of strings. The strength is the maximum of all match string on each target.
examples/coev/coop_base.py:57
FunctionmatchSetStrengthNoNoise
Compute the match strength of a set of strings on the target set of strings. The strength is the maximum of all match string on each target ex
examples/coev/coop_base.py:66
FunctionmigPipe
Migration using pipes between initialized processes. It first selects *k* individuals from the *deme* and writes them in *pipeout*. Then it re
examples/ga/onemax_island.py:45
FunctionmigRing
Perform a ring migration between the *populations*. The migration first select *k* emigrants from each population using the specified *selection*
deap/tools/migration.py:1
Methodmove_forward
(self)
examples/gp/ant.py:108
FunctionmutAddWire
(individual, dimension)
examples/ga/evosn.py:45
FunctionmutAddWire
(individual, dimension)
doc/code/tutorials/part_4/4_4_Using_Cpp_NSGA.py:44
FunctionmutAddWire
(individual, dimension)
doc/code/tutorials/part_4/4_5_home_made_eval_func.py:50
FunctionmutCounter
Adds or remove an item from an individual
examples/ga/xkcd.py:68
FunctionmutDE
(y, a, b, c, f)
examples/de/sphere.py:35
FunctionmutDelWire
(individual)
examples/ga/evosn.py:49
FunctionmutDelWire
(individual)
doc/code/tutorials/part_4/4_4_Using_Cpp_NSGA.py:48
FunctionmutDelWire
(individual)
doc/code/tutorials/part_4/4_5_home_made_eval_func.py:54
FunctionmutESLogNormal
r"""Mutate an evolution strategy according to its :attr:`strategy` attribute as described in [Beyer2002]_. First the strategy is mutated accor
deap/tools/mutation.py:207
FunctionmutEphemeral
This operator works on the constants of the tree *individual*. In *mode* ``"one"``, it will change the value of one of the individual ephemera
deap/gp.py:800
FunctionmutFlipBit
Flip the value of the attributes of the input individual and return the mutant. The *individual* is expected to be a :term:`sequence` and the valu
deap/tools/mutation.py:123
FunctionmutGaussian
This function applies a gaussian mutation of mean *mu* and standard deviation *sigma* on the input individual. This mutation expects a :term:`
deap/tools/mutation.py:16
FunctionmutInsert
Inserts a new branch at a random position in *individual*. The subtree at the chosen position is used as child node of the created subtree, in
deap/gp.py:828
FunctionmutNetwork
(individual, dimension, mutpb, addpb, delpb, indpb)
examples/coev/hillis.py:45
FunctionmutNodeReplacement
Replaces a randomly chosen primitive from *individual* by a randomly chosen primitive with the same number of arguments from the :attr:`pset`
deap/gp.py:774
FunctionmutParasite
(individual, indmut, indpb)
examples/coev/hillis.py:58
FunctionmutPolynomialBounded
Polynomial mutation as implemented in original NSGA-II algorithm in C by Deb. :param individual: :term:`Sequence <sequence>` individual to be
deap/tools/mutation.py:50
FunctionmutSemantic
Implementation of the Semantic Mutation operator. [Geometric semantic genetic programming, Moraglio et al., 2012] mutated_individual = indivi
deap/gp.py:1229
FunctionmutSet
Mutation that pops or add an element.
examples/ga/knapsack.py:74
FunctionmutShrink
This operator shrinks the *individual* by choosing randomly a branch and replacing it with one of the branch's arguments (also randomly chosen).
deap/gp.py:868
FunctionmutShuffleIndexes
Shuffle the attributes of the input individual and return the mutant. The *individual* is expected to be a :term:`sequence`. The *indpb* argument
deap/tools/mutation.py:97
FunctionmutUniform
Randomly select a point in the tree *individual*, then replace the subtree at that point as a root by the expression generated using method :f
deap/gp.py:757
FunctionmutUniformInt
Mutate an individual by replacing attributes, with probability *indpb*, by a integer uniformly drawn between *low* and *up* inclusively. :par
deap/tools/mutation.py:144
FunctionmutWire
(individual, dimension, indpb)
examples/ga/evosn.py:40
FunctionmutWire
(individual, dimension, indpb)
doc/code/tutorials/part_4/4_4_Using_Cpp_NSGA.py:39
FunctionmutWire
(individual, dimension, indpb)
doc/code/tutorials/part_4/4_5_home_made_eval_func.py:45
Methodnoise
Set the current noise to *noise*. After decorating the evaluation function, this function will be available directly from the function
deap/benchmarks/tools.py:155
Functiononemax
(individual)
doc/code/tutorials/part_3/3_8_algorithms.py:18
Functiononemax
(individual)
doc/code/tutorials/part_3/3_7_variations.py:18
Functionplane
r"""Plane test objective function. .. list-table:: :widths: 10 50 :stub-columns: 1 * - Type - minimization
deap/benchmarks/__init__.py:46
Functionpoloni
r"""Poloni's multiobjective function on a two attribute *individual*. From: C. Poloni, "Hybrid GA for multi objective aerodynamic shape optimizati
deap/benchmarks/__init__.py:675
Methodposition
(self)
examples/gp/ant.py:95
Functionprog2
(out1, out2)
examples/gp/ant.py:66
Functionprog3
(out1, out2, out3)
examples/gp/ant.py:69
Functionprogn
(*args)
examples/gp/ant.py:62
FunctionprotectedDiv
(left, right)
examples/gp/symbreg_numpy.py:31
FunctionprotectedDiv
(left, right)
examples/gp/adf_symbreg.py:30
FunctionprotectedDiv
(left, right)
examples/gp/symbreg_harm.py:29
FunctionprotectedDiv
(left, right)
examples/gp/spambase.py:49
FunctionprotectedDiv
(left, right)
examples/gp/symbreg.py:31
FunctionprotectedDiv
(left, right)
examples/gp/symbreg_epsilon_lexicase.py:29
← previousnext →401–500 of 649, ranked by callers