Module ImportFrom alias Assign NameStore Str ImportFrom alias alias alias alias alias alias alias alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Num Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad BinOpDiv AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpSub Call NameLoad BinOpAdd AttributeLoad NameLoad attr Num Call NameLoad Call NameLoad Call NameLoad Num BinOpAdd AttributeLoad NameLoad attr Num AugAssignDiv AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpDiv BinOpPow Call NameLoad AttributeLoad NameLoad attr Num Call NameLoad Call NameLoad AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpDiv Num Call NameLoad BinOpAdd AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpDiv BinOpAdd AttributeLoad NameLoad attr Num BinOpAdd BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd BinOpDiv BinOpMult BinOpDiv Num AttributeLoad NameLoad attr Num BinOpPow BinOpAdd AttributeLoad NameLoad attr Num Num BinOpMult BinOpSub Num BinOpDiv Num AttributeLoad NameLoad attr BinOpDiv BinOpSub BinOpMult Num AttributeLoad NameLoad attr Num BinOpAdd BinOpPow BinOpAdd AttributeLoad NameLoad attr Num Num BinOpMult Num AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd Num BinOpMult Num Call NameLoad Num BinOpSub Call NameLoad BinOpDiv BinOpSub AttributeLoad NameLoad attr Num BinOpAdd AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr BinOpMult BinOpPow AttributeLoad NameLoad attr Num BinOpAdd BinOpSub Num BinOpDiv Num BinOpMult Num AttributeLoad NameLoad attr BinOpDiv Num BinOpMult Num BinOpPow AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num TupleLoad Num AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num TupleLoad Num AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd BinOpMult BinOpSub Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult Call NameLoad BinOpMult BinOpMult AttributeLoad NameLoad attr BinOpSub Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore CompareLt BinOpDiv BinOpDiv Call NameLoad AttributeLoad NameLoad attr Call NameLoad BinOpSub Num BinOpPow BinOpSub Num AttributeLoad NameLoad attr BinOpDiv BinOpMult Num AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd Num BinOpDiv Num BinOpAdd AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpAdd BinOpMult BinOpSub Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult BinOpMult NameLoad Call NameLoad BinOpMult BinOpMult AttributeLoad NameLoad attr BinOpSub Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpMult BinOpSub Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult BinOpMult AttributeLoad NameLoad attr BinOpDiv Num AttributeLoad NameLoad attr BinOpAdd Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult BinOpMult BinOpMult BinOpSub Num NameLoad AttributeLoad NameLoad attr BinOpSub Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult BinOpMult AttributeLoad NameLoad attr BinOpSub Num BinOpDiv Num AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignMult AttributeStore NameLoad attr Call NameLoad BinOpMult BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpSub BinOpDiv Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpDiv BinOpAdd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign TupleStore NameStore AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr If BoolOpOr CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num CompareLtE BinOpDiv Call NameLoad BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpAdd Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call NameLoad Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body If AttributeLoad NameLoad attr body Expr Call NameLoad Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad BinOpAdd Num Call NameLoad BinOpMult Num Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListComp TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num comprehension NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Assign NameStore Call NameLoad ListComp Call NameLoad SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Return TupleLoad NameLoad NameLoad decorator_list
N/A __future__ print_function N/A __author__ Tom Schaul, tom@idsia.ch; Sun Yi, yi@idsia.ch numpy floor log eye zeros array sqrt sum dot tile outer real numpy exp diag power ravel numpy.linalg eig norm numpy.random randn pybrain.optimization.optimizer ContinuousOptimizer CMAES N/A ContinuousOptimizer N/A N/A  CMA-ES: Evolution Strategy with Covariance Matrix Adaptation for
    nonlinear function minimization.
    This code is a close transcription of the provided matlab code.
     N/A mustMinimize True N/A stopPrecision 1e-06 N/A storeAllCenters False N/A initStepSize 0.5 _additionalInit N/A N/A self N/A N/A N/A N/A self center N/A self _initEvaluable N/A N/A self stepSize N/A self initStepSize N/A N/A self storeAllCenters N/A N/A N/A self _allCenters N/A N/A N/A self mu N/A int N/A floor N/A N/A self batchSize 2 N/A N/A self weights N/A N/A log N/A N/A self mu 1 N/A log N/A array N/A range 1 N/A N/A self mu 1 N/A N/A self weights N/A sum N/A self weights N/A N/A self muEff N/A N/A N/A sum N/A self weights 2 N/A sum N/A power N/A self weights 2 N/A N/A self cumCov N/A 4 N/A float N/A N/A self numParameters 4 N/A N/A self cumStep N/A N/A N/A self muEff 2 N/A N/A N/A self numParameters N/A self muEff 3 N/A N/A self muCov N/A self muEff N/A N/A self covLearningRate N/A N/A N/A N/A 1 N/A self muCov 2 N/A N/A N/A self numParameters 1.4 2 N/A N/A 1 N/A 1 N/A self muCov N/A N/A N/A 2 N/A self muEff 1 N/A N/A N/A N/A self numParameters 2 2 N/A 2 N/A self muEff N/A N/A self dampings N/A N/A 1 N/A 2 N/A max 0 N/A N/A sqrt N/A N/A N/A self muEff 1 N/A N/A self numParameters 1 1 N/A self cumStep N/A N/A self covPath N/A zeros N/A self numParameters N/A N/A self stepPath N/A zeros N/A self numParameters N/A N/A self B N/A eye N/A self numParameters N/A self numParameters N/A N/A self D N/A eye N/A self numParameters N/A self numParameters N/A N/A self C N/A dot N/A dot N/A self B N/A self D N/A N/A dot N/A self B N/A self D T N/A N/A self chiN N/A N/A N/A self numParameters 0.5 N/A N/A 1 N/A 1.0 N/A 4.0 N/A self numParameters N/A 1 N/A 21.0 N/A N/A self numParameters 2 N/A _learnStep N/A N/A self N/A N/A N/A arz N/A randn N/A self numParameters N/A self batchSize N/A arx N/A N/A tile N/A N/A N/A self center reshape N/A self numParameters 1 N/A 1 N/A self batchSize N/A N/A self stepSize N/A dot N/A dot N/A self B N/A self D arz N/A arfitness N/A zeros N/A self batchSize N/A k N/A range N/A self batchSize N/A N/A N/A arfitness N/A k N/A N/A self _oneEvaluation N/A arx N/A N/A N/A k N/A N/A arfitness arindex N/A sorti arfitness N/A arz N/A arz N/A N/A N/A arindex N/A arx N/A arx N/A N/A N/A arindex N/A arzsel N/A arz N/A N/A N/A N/A range N/A self mu N/A arxsel N/A arx N/A N/A N/A N/A range N/A self mu N/A arxmut N/A arxsel N/A tile N/A N/A N/A self center reshape N/A self numParameters 1 N/A 1 N/A self mu N/A zmean N/A dot arzsel N/A self weights N/A N/A self center N/A dot arxsel N/A self weights N/A N/A self storeAllCenters N/A N/A N/A N/A N/A self _allCenters append N/A self center N/A N/A self stepPath N/A N/A N/A 1 N/A self cumStep N/A self stepPath N/A N/A sqrt N/A N/A N/A self cumStep N/A 2 N/A self cumStep N/A self muEff N/A dot N/A self B zmean N/A hsig N/A N/A N/A N/A norm N/A self stepPath N/A sqrt N/A 1 N/A N/A 1 N/A self cumStep N/A N/A 2 N/A self numEvaluations N/A float N/A self batchSize N/A self chiN N/A 1.4 N/A 2.0 N/A N/A self numParameters 1 N/A N/A self covPath N/A N/A N/A 1 N/A self cumCov N/A self covPath N/A N/A hsig N/A sqrt N/A N/A N/A self cumCov N/A 2 N/A self cumCov N/A self muEff N/A dot N/A dot N/A self B N/A self D zmean N/A N/A self C N/A N/A N/A N/A 1 N/A self covLearningRate N/A self C N/A N/A N/A self covLearningRate N/A 1 N/A self muCov N/A N/A outer N/A self covPath N/A self covPath N/A N/A N/A N/A 1 hsig N/A self cumCov N/A 2 N/A self cumCov N/A self C N/A N/A N/A self covLearningRate N/A 1 N/A 1 N/A self muCov N/A dot N/A dot arxmut N/A diag N/A self weights N/A arxmut T N/A N/A self stepSize N/A exp N/A N/A N/A self cumStep N/A self dampings N/A N/A N/A norm N/A self stepPath N/A self chiN 1 N/A N/A self C N/A N/A N/A self C N/A N/A self C T 2 N/A N/A Ev N/A self B N/A eig N/A self C N/A Ev N/A real Ev N/A N/A self D N/A diag N/A sqrt Ev N/A N/A self B N/A real N/A self B N/A N/A N/A N/A arfitness N/A 0 N/A arfitness N/A -1 N/A N/A N/A abs N/A N/A arfitness N/A 0 N/A arfitness N/A -1 N/A N/A abs N/A arfitness N/A 0 N/A abs N/A arfitness N/A -1 N/A self stopPrecision N/A N/A N/A self verbose N/A N/A N/A print Converged. N/A N/A self maxLearningSteps N/A self numLearningSteps N/A N/A N/A min Ev 100000.0 N/A N/A N/A self verbose N/A N/A N/A print Diverged. N/A N/A self maxLearningSteps N/A self numLearningSteps N/A batchSize N/A N/A self N/A N/A N/A N/A int N/A 4 N/A floor N/A 3 N/A log N/A self numParameters N/A property N/A sorti N/A N/A vect N/A N/A N/A  sort, but also return the indices-changes  N/A tmp N/A sorted N/A N/A N/A x_y N/A 1 N/A x_y N/A 0 N/A x_y N/A enumerate N/A ravel vect N/A res1 N/A array N/A N/A x N/A 0 N/A x tmp N/A res2 N/A array N/A N/A int N/A x N/A 1 N/A x tmp N/A N/A res1 res2 N/A