Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/DEAP/deap
/ functions
Functions
649 in github.com/DEAP/deap
⨍
Functions
649
◇
Types & classes
55
↳
Endpoints
5
↓ 480 callers
Method
register
Register a *function* in the toolbox under the name *alias*. You may provide default arguments that will be passed automatically when
deap/base.py:52
↓ 175 callers
Method
append
Appends a node to the end of the list at the given index.
deap/tools/_hypervolume/pyhv.py:261
↓ 171 callers
Method
register
Register a *function* that will be applied on the sequence each time :meth:`record` is called. :param name: The name of the statistic
deap/tools/support.py:180
↓ 82 callers
Method
addPrimitive
Add primitive *primitive* with arity *arity* to the set. If a name *name* is provided, it will replace the attribute __name__ attribut
deap/gp.py:455
↓ 64 callers
Method
compile
Apply to the input sequence *data* each registered function and return the results as a dictionary. :param data: Sequence of objects
deap/tools/support.py:195
↓ 60 callers
Method
record
Enter a record of event in the logbook as a list of key-value pairs. The information are appended chronologically to a list as a dictionary.
deap/tools/support.py:333
↓ 45 callers
Method
select
Return a list of values associated to the *names* provided in argument in each dictionary of the Statistics object list. One list per
deap/tools/support.py:349
↓ 39 callers
Method
evaluate
Simplest evaluation function.
tests/test_benchmarks.py:16
↓ 31 callers
Method
extend
Extends the list at the given index with the nodes.
deap/tools/_hypervolume/pyhv.py:270
↓ 30 callers
Function
func
()
tests/test_pickle.py:18
↓ 27 callers
Method
update
Update the current covariance matrix strategy from the *population*. :param population: A list of individuals from which to update th
deap/cma.py:126
↓ 26 callers
Method
pop
Retrieve and delete element *index*. The header and stream will be adjusted to follow the modification. :param item: The index of the
deap/tools/support.py:410
↓ 20 callers
Method
insert
Insert a new individual in the hall of fame using the :func:`~bisect.bisect_right` function. The inserted individual is inserted on th
deap/tools/support.py:543
↓ 17 callers
Method
decorate
Decorate *alias* with the specified *decorators*, *alias* has to be a registered function in the current toolbox. :param alias: The n
deap/base.py:100
↓ 17 callers
Method
format
(self)
deap/gp.py:233
↓ 17 callers
Method
register
Register a *function* in each :class:`Statistics` object. :param name: The name of the statistics function as it would appear
deap/tools/support.py:244
↓ 12 callers
Method
update
Update the hall of fame with the *population* by replacing the worst individuals in it by the best individuals present in *population*
deap/tools/support.py:515
↓ 10 callers
Method
update
(self, population)
examples/eda/pbil.py:40
↓ 9 callers
Method
addTerminal
Add a terminal to the set.
deap/gp.py:464
↓ 9 callers
Method
dominates
Return true if each objective of *self* is not strictly worse than the corresponding objective of *other* and at least one objective is
deap/base.py:209
↓ 9 callers
Function
hypervolume
Returns the index of the individual with the least the hypervolume contribution. The provided *front* should be a set of non-dominated individ
deap/tools/indicator.py:11
↓ 9 callers
Method
sample
(self)
examples/eda/pbil.py:34
↓ 8 callers
Function
_violates_constraint
(fitness)
deap/base.py:273
↓ 8 callers
Method
searchSubtree
Return a slice object that corresponds to the range of values that defines the subtree which has the element with index *begin* as its
deap/gp.py:175
↓ 8 callers
Method
sort
Sort the values in-place based on the connectors in the network.
doc/code/tutorials/part_4/sortingnetwork.py:65
↓ 7 callers
Method
addEphemeralConstant
Add an ephemeral constant to the set.
deap/gp.py:468
↓ 7 callers
Method
generate
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:114
↓ 7 callers
Function
inv_trap
(individual)
deap/benchmarks/binary.py:52
↓ 6 callers
Method
addADF
Add an Automatically Defined Function (ADF) to the set. :param adfset: PrimitiveSetTyped containing the primitives with which
deap/gp.py:428
↓ 6 callers
Function
mutInversion
Select two points (indices) in the individual, reverse the order of the attributes between these points [low, high] and return the mutated individ
deap/tools/mutation.py:175
↓ 6 callers
Method
renameArguments
Rename function arguments with new names from *kargs*.
deap/gp.py:309
↓ 6 callers
Function
trap
(individual)
deap/benchmarks/binary.py:43
↓ 6 callers
Method
values
(self)
deap/base.py:285
↓ 5 callers
Method
_add
(self, prim)
deap/gp.py:320
↓ 5 callers
Method
currentError
(self)
deap/benchmarks/movingpeaks.py:252
↓ 5 callers
Method
offlineError
(self)
deap/benchmarks/movingpeaks.py:249
↓ 5 callers
Method
update
Update the Pareto front hall of fame with the *population* by adding the individuals from the population that are not dominated by the hall
deap/tools/support.py:610
↓ 4 callers
Function
acceptfunc
(s)
deap/gp.py:1122
↓ 4 callers
Method
height
Return the height of the tree, or the depth of the deepest node.
deap/gp.py:157
↓ 4 callers
Method
predict
(self, data, features=None)
examples/ga/knn.py:34
↓ 4 callers
Method
remove
Remove the specified *index* from the hall of fame. :param index: An integer giving which item to remove.
deap/tools/support.py:560
↓ 4 callers
Function
tourn
(ind1, ind2)
deap/tools/emo.py:172
↓ 3 callers
Method
__init__
(self, terminal, symbolic, ret)
deap/gp.py:223
↓ 3 callers
Method
addPrimitive
Add a primitive to the set. :param primitive: callable object or a function. :param in_types: list of primitives arguments' type
deap/gp.py:347
↓ 3 callers
Method
assess
Try to sort the **cases** using the network, return the number of misses. If **cases** is None, test all possible cases according to t
examples/ga/sortingnetwork.py:66
↓ 3 callers
Function
genWire
(dimension)
examples/coev/hillis.py:35
↓ 3 callers
Function
genWire
(dimension)
examples/ga/evosn.py:33
↓ 3 callers
Function
genWire
(dimension)
doc/code/tutorials/part_4/4_4_Using_Cpp_NSGA.py:32
↓ 3 callers
Function
genWire
(dimension)
doc/code/tutorials/part_4/4_5_home_made_eval_func.py:38
↓ 3 callers
Method
generate
(self, ind_init)
examples/eda/pbil.py:37
↓ 3 callers
Method
run
(self)
setup.py:41
↓ 3 callers
Function
sidebar_is_collapsed
()
doc/_static/sidebar.js:45
↓ 3 callers
Function
teardown_
()
tests/test_algorithms.py:35
↓ 3 callers
Method
train
(self, data, labels)
examples/ga/knn.py:28
↓ 3 callers
Method
unregister
Unregister *alias* from the toolbox. :param alias: The name of the operator to remove from the toolbox.
deap/base.py:93
↓ 3 callers
Method
update
Update the history with the new *individuals*. The index present in their :attr:`history_index` attribute will be used to locate their
deap/tools/support.py:69
↓ 2 callers
Method
__new__
(cls, seq=())
deap/creator.py:79
↓ 2 callers
Function
_genpop
(n, pickfrom=[], acceptfunc=lambda s: True, producesizes=False)
deap/gp.py:1006
↓ 2 callers
Method
_rankOneUpdate
(self, invCholesky, A, alpha, beta, v)
deap/cma.py:474
↓ 2 callers
Method
changePeaks
Order the peaks to change position, height, width and number.
deap/benchmarks/movingpeaks.py:255
↓ 2 callers
Function
checkBounds
(min, max)
examples/ga/kursawefct.py:40
↓ 2 callers
Function
checkBounds
(min, max)
doc/code/tutorials/part_3/3_6_2_tool_decoration.py:8
↓ 2 callers
Function
checkStrategy
(minstrategy)
examples/es/fctmin.py:43
↓ 2 callers
Function
close_valid
Determines if the individual is close to valid.
examples/es/cma_mo.py:58
↓ 2 callers
Function
closest_feasible
A function returning a valid individual from an invalid one.
tests/test_algorithms.py:137
↓ 2 callers
Function
collapse_sidebar
()
doc/_static/sidebar.js:56
↓ 2 callers
Function
condition
Expression generation stops when the depth is equal to height.
deap/gp.py:546
↓ 2 callers
Function
distance
A distance function to the feasibility region.
tests/test_algorithms.py:133
↓ 2 callers
Method
draw
Return an ASCII representation of the network.
examples/ga/sortingnetwork.py:82
↓ 2 callers
Method
draw
Return an ASCII representation of the network.
doc/code/tutorials/part_4/sortingnetwork.py:88
↓ 2 callers
Function
expand_sidebar
()
doc/_static/sidebar.js:71
↓ 2 callers
Function
generate
Generate a tree as a list of primitives and terminals in a depth-first order. The tree is built from the root to the leaves, and it stops growing
deap/gp.py:603
↓ 2 callers
Function
halflifefunc
(x)
deap/gp.py:1059
↓ 2 callers
Function
isDominated
Returns whether or not *wvalues2* dominates *wvalues1*. :param wvalues1: The weighted fitness values that would be dominated. :param wvalues2
deap/tools/emo.py:210
↓ 2 callers
Function
matchStrength
Compute the match strength for the individual *x* on the string *y*.
examples/coev/coop_base.py:46
↓ 2 callers
Method
maximums
Returns all visible maximums value and position sorted with the global maximum first.
deap/benchmarks/movingpeaks.py:196
↓ 2 callers
Function
median
Returns the median of *seq* - the numeric value separating the higher half of a sample from the lower half. If there is an even number of elem
deap/tools/emo.py:227
↓ 2 callers
Function
product
(*args, **kwds)
doc/code/tutorials/part_4/sortingnetwork.py:19
↓ 2 callers
Method
rotate
Set the current rotation to *matrix*. After decorating the evaluation function, this function will be available directly from the func
deap/benchmarks/tools.py:101
↓ 2 callers
Function
run_setup
(build_ext)
setup.py:55
↓ 2 callers
Method
sort
Sort the values in-place based on the connectors in the network.
examples/ga/sortingnetwork.py:59
↓ 2 callers
Function
sortLogNondominated
Sort *individuals* in pareto non-dominated fronts using the Generalized Reduced Run-Time Complexity Non-Dominated Sorting Algorithm presented by
deap/tools/emo.py:240
↓ 2 callers
Function
sortNondominated
Sort the first *k* *individuals* into different nondomination levels using the "Fast Nondominated Sorting Approach" proposed by Deb et al., se
deap/tools/emo.py:53
↓ 2 callers
Function
targetfunc
(x)
deap/gp.py:1108
↓ 2 callers
Function
varOr
r"""Part of an evolutionary algorithm applying only the variation part (crossover, mutation **or** reproduction). The modified individuals have
deap/algorithms.py:192
↓ 1 callers
Method
__call__
Evaluate a given *individual* with the current benchmark configuration. :param indidivudal: The individual to evaluate. :para
deap/benchmarks/movingpeaks.py:212
↓ 1 callers
Method
__eq__
(self, other)
deap/base.py:246
↓ 1 callers
Method
__eq__
(self, other)
deap/base.py:321
↓ 1 callers
Method
__init__
(self)
deap/base.py:48
↓ 1 callers
Method
__init__
(cls, name, base, dct)
deap/creator.py:103
↓ 1 callers
Method
__init__
(self)
deap/tools/support.py:64
↓ 1 callers
Method
__le__
(self, other)
deap/base.py:240
↓ 1 callers
Method
__le__
(self, other)
deap/base.py:295
↓ 1 callers
Method
__lt__
(self, other)
deap/base.py:243
↓ 1 callers
Method
__lt__
(self, other)
deap/base.py:308
↓ 1 callers
Method
__str__
(self, startindex=0)
deap/tools/support.py:483
↓ 1 callers
Method
__txt__
(self, startindex)
deap/tools/support.py:427
↓ 1 callers
Method
_compute_lambda_parameters
Computes the parameters depending on :math:`\lambda`. It needs to be called again if :math:`\lambda` changes during evolution.
deap/cma.py:655
↓ 1 callers
Function
_fitTournament
(individuals, k, select)
deap/tools/selection.py:169
↓ 1 callers
Method
_infeasible_update
(self, individual)
deap/cma.py:801
next →
1–100 of 649, ranked by callers