Module Assign NameStore Str ImportFrom alias alias ImportFrom alias identifier alias ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad Assign NameStore Num Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad Assign NameStore NameLoad Expr Str FunctionDef arguments args NameParam defaults body Assert CompareEq Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad ListComp NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad ListComp NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr For NameStore Call NameLoad BinOpSub AttributeLoad NameLoad attr Num body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr BinOpMult BinOpMult Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Str orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignMult NameStore BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareLt NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad Call NameLoad BinOpSub NameLoad Num AugAssignAdd NameStore Num Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Slice NameLoad SubscriptLoad NameLoad Slice NameLoad Assign SubscriptStore NameLoad Slice NameLoad SubscriptLoad NameLoad Slice NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareLt Call NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad Call NameLoad Num AttributeLoad NameLoad attr Return NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Assign NameStore ListLoad For NameStore Call NameLoad BinOpFloorDiv Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index BinOpAdd NameLoad BinOpFloorDiv Call NameLoad NameLoad Num If CompareLt NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad Call NameLoad Call NameLoad BinOpSub NameLoad Num AugAssignAdd NameStore Num Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Slice NameLoad SubscriptLoad NameLoad Slice NameLoad Assign SubscriptStore NameLoad Slice NameLoad SubscriptLoad NameLoad Slice NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Slice NameLoad SubscriptLoad NameLoad Slice NameLoad Assign SubscriptStore NameLoad Slice NameLoad SubscriptLoad NameLoad Slice NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad If CompareGt Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Slice NameLoad orelse While CompareLt Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore Call NameLoad NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body For NameStore Call NameLoad Call NameLoad NameLoad body If Call NameLoad GeneratorExp CompareLt BinOpDiv Call NameLoad BinOpSub SubscriptLoad NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Num comprehension NameStore Call NameLoad AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareLt Call NameLoad AttributeLoad NameLoad attr body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad Call NameLoad Num AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index NameLoad Call NameLoad Call NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad Call NameLoad Num AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareLt Call NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad Call NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad Call NameLoad Num AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If BoolOpOr CompareLt Call NameLoad AttributeLoad NameLoad attr NameLoad body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad Call NameLoad Num AttributeLoad NameLoad attr orelse If NameLoad body Assign NameStore BinOpDiv Call NameLoad BinOpSub SubscriptLoad NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore BinOpDiv Call NameLoad BinOpSub SubscriptLoad NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If BoolOpOr CompareLt NameLoad Num CompareLt NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index NameLoad BinOpMult BinOpMult Call NameLoad Call NameLoad BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad Call NameLoad Call NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad Call NameLoad Num AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad Call NameLoad Call NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad Call NameLoad Num AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body If CompareNotEq AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr orelse Return Call NameLoad BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad Call NameLoad Call NameLoad NameLoad Slice AttributeLoad NameLoad attr Return ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad orelse Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Slice NameLoad Expr Str Assign NameStore BinOpSub AttributeLoad NameLoad attr NameLoad If CompareLtE BinOpSub AttributeLoad NameLoad attr NameLoad Num body Assign NameStore Call NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A __author__ Tom Schaul, tom@idsia.ch scipy randn zeros scipy random rd array random choice random gauss shuffle sample numpy ndarray pybrain.optimization.populationbased.evolution Evolution pybrain.optimization.optimizer ContinuousOptimizer GA N/A ContinuousOptimizer Evolution N/A N/A  Standard Genetic Algorithm.  N/A tournament False N/A tournamentSize 2 N/A topProportion 0.2 N/A elitism False N/A eliteProportion 0.5 N/A _eliteSize None N/A mutationProb 0.1 N/A mutationStdDev 0.5 N/A initRangeScaling 10.0 N/A initialPopulation None N/A mustMaximize True N/A added by JPQ initBoundaries N/A N/A self N/A N/A N/A N/A N/A len N/A self xBound N/A self numParameters N/A N/A self mins N/A array N/A min_ N/A N/A min_ max_ N/A self xBound N/A N/A self maxs N/A array N/A max_ N/A N/A min_ max_ N/A self xBound N/A initPopulation N/A N/A self N/A N/A N/A added by JPQ  N/A N/A N/A self xBound None N/A N/A N/A N/A self initBoundaries N/A N/A N/A self initialPopulation None N/A N/A N/A self currentpop N/A self initialPopulation N/A N/A N/A self currentpop N/A N/A self _initEvaluable N/A _ N/A range N/A N/A self populationSize 1 N/A N/A added by JPQ  N/A N/A N/A self xBound None N/A N/A N/A N/A N/A self currentpop append N/A N/A self _initEvaluable N/A N/A N/A randn N/A self numParameters N/A self mutationStdDev N/A self initRangeScaling N/A added by JPQ  N/A N/A position N/A N/A rd random N/A self numParameters N/A position N/A N/A self maxs N/A self mins N/A position N/A self mins N/A N/A N/A N/A self currentpop append position N/A crossOverOld N/A N/A self parents nbChildren N/A N/A N/A  generate a number of children by doing 1-point cross-over  N/A xdim N/A self numParameters N/A children N/A N/A _ N/A range nbChildren N/A N/A p1 N/A choice parents N/A N/A xdim 2 N/A N/A N/A N/A children append p1 N/A N/A p2 N/A choice parents N/A point N/A choice N/A list N/A range N/A xdim 1 N/A point 1 N/A res N/A zeros xdim N/A N/A res N/A point N/A p1 N/A point N/A N/A res N/A point N/A p2 N/A point N/A N/A N/A children append res N/A children N/A mutatedOld N/A N/A self indiv N/A N/A N/A  mutate some genes of the given individual  N/A res N/A N/A indiv copy N/A i N/A range N/A self numParameters N/A N/A N/A N/A random N/A self mutationProb N/A N/A N/A res N/A i N/A N/A indiv N/A i N/A gauss 0 N/A self mutationStdDev N/A res N/A N/A  added by JPQ in replacement of crossover and mutated  crossOver N/A N/A self parents nbChildren N/A N/A N/A  generate a number of children by doing 1-point cross-over  N/A  change as the <choice> return quite often the same p1 and even
            several time p2 was return the same than p1  N/A xdim N/A self numParameters N/A N/A shuffle parents N/A children N/A N/A i N/A range N/A N/A len parents 2 N/A N/A p1 N/A parents N/A i N/A p2 N/A parents N/A N/A i N/A N/A len parents 2 N/A N/A xdim 2 N/A N/A N/A N/A children append p1 N/A N/A N/A children append p2 N/A N/A point N/A choice N/A list N/A range N/A xdim 1 N/A point 1 N/A res N/A zeros xdim N/A N/A res N/A point N/A p1 N/A point N/A N/A res N/A point N/A p2 N/A point N/A N/A N/A children append res N/A res N/A zeros xdim N/A N/A res N/A point N/A p2 N/A point N/A N/A res N/A point N/A p1 N/A point N/A N/A N/A children append res N/A N/A shuffle children N/A N/A N/A len children nbChildren N/A N/A children N/A children N/A nbChildren N/A N/A N/A N/A len children nbChildren N/A N/A children N/A sample children 1 N/A children N/A childexist N/A N/A self indiv pop N/A N/A N/A N/A isinstance pop list N/A N/A i N/A range N/A len pop N/A N/A N/A all N/A N/A N/A N/A abs N/A N/A indiv N/A k N/A N/A pop N/A i N/A k N/A N/A N/A self maxs N/A k N/A N/A self mins N/A k 1e-07 N/A k N/A range N/A self numParameters N/A N/A True N/A False N/A mutated N/A N/A self indiv N/A N/A N/A  mutate some genes of the given individual  N/A res N/A N/A indiv copy N/A i N/A range N/A self numParameters N/A N/A N/A N/A random N/A self mutationProb N/A N/A N/A N/A self xBound None N/A N/A N/A res N/A i N/A N/A indiv N/A i N/A gauss 0 N/A self mutationStdDev N/A N/A N/A res N/A i N/A max N/A min N/A N/A indiv N/A i N/A gauss 0 N/A self mutationStdDev N/A N/A self maxs N/A i N/A N/A self mins N/A i N/A res N/A old_jpq_mutated N/A N/A self indiv pop N/A N/A N/A  mutate some genes of the given individual  N/A res N/A N/A indiv copy N/A in_pop N/A N/A self childexist indiv pop N/A i N/A range N/A self numParameters N/A N/A N/A N/A random N/A self mutationProb N/A N/A N/A res N/A i N/A max N/A min N/A N/A indiv N/A i N/A gauss 0 N/A self mutationStdDev N/A N/A self maxs N/A i N/A N/A self mins N/A i N/A N/A N/A N/A random N/A self mutationProb in_pop N/A N/A N/A N/A self xBound None N/A N/A N/A res N/A i N/A N/A indiv N/A i N/A gauss 0 N/A self mutationStdDev N/A N/A in_pop N/A N/A cmin N/A N/A abs N/A N/A indiv N/A i N/A N/A self mins N/A i N/A N/A N/A self maxs N/A i N/A N/A self mins N/A i N/A cmax N/A N/A abs N/A N/A indiv N/A i N/A N/A self maxs N/A i N/A N/A N/A self maxs N/A i N/A N/A self mins N/A i N/A N/A N/A cmin 1e-07 N/A cmax 1e-07 N/A N/A N/A res N/A i N/A N/A N/A self mins N/A i N/A N/A N/A random N/A random N/A N/A N/A self maxs N/A i N/A N/A self mins N/A i N/A N/A N/A res N/A i N/A max N/A min N/A N/A indiv N/A i N/A gauss 0 N/A self mutationStdDev N/A N/A self maxs N/A i N/A N/A self mins N/A i N/A N/A N/A res N/A i N/A max N/A min N/A N/A indiv N/A i N/A gauss 0 N/A self mutationStdDev N/A N/A self maxs N/A i N/A N/A self mins N/A i N/A res N/A selectionSize N/A N/A self N/A N/A N/A  the number of parents selected from the current population  N/A N/A int N/A N/A self populationSize N/A self topProportion N/A property eliteSize N/A N/A self N/A N/A N/A N/A self elitism N/A N/A N/A N/A self _eliteSize None N/A N/A N/A self _eliteSize N/A N/A N/A int N/A N/A self populationSize N/A self eliteProportion N/A N/A 0 N/A property select N/A N/A self N/A N/A N/A  select some of the individuals of the population, taking into account their fitnesses

        :return: list of selected parents  N/A N/A N/A self tournament N/A N/A tmp N/A list N/A zip N/A self fitnesses N/A self currentpop N/A N/A N/A tmp sort key N/A N/A N/A x N/A N/A x N/A 0 N/A tmp2 N/A N/A list N/A reversed tmp N/A N/A self selectionSize N/A N/A N/A x N/A 1 N/A x tmp2 N/A N/A N/A NotImplementedError N/A produceOffspring N/A N/A self N/A N/A N/A  produce offspring by selection, mutation and crossover.  N/A parents N/A N/A self select N/A es N/A min N/A self eliteSize N/A self selectionSize N/A N/A self currentpop N/A parents N/A es N/A Modified by JPQ  N/A nbchildren N/A N/A self populationSize es N/A N/A N/A N/A self populationSize es 0 N/A N/A nbchildren N/A len parents N/A child N/A N/A self crossOver parents nbchildren N/A N/A N/A N/A N/A self currentpop append N/A N/A self mutated child N/A N/A