class_docstr: .. include:: /global.rst
  
  Please refer to |cmaes| for details about this algorithm.
  
  This solver uses an implementation available in the DEAP library [DEAP2012]_.
  
  .. warning:: This solver has dependencies on DEAP_ and NumPy_
      and will be unavailable if these are not met.
  
      .. _DEAP: https://code.google.com/p/deap/
      .. _NumPy: http://www.numpy.org
class_docstr_tok: ["..","include",":",":","\/global.rst","Please","refer","to","|cmaes|","for","details","about","this","algorithm",".","This","solver","uses","an","implementation","available","in","the","DEAP","library","[","DEAP2012","]","_",".","..","warning",":",":","This","solver","has","dependencies","on","DEAP_","and","NumPy_","and","will","be","unavailable","if","these","are","not","met",".","..","_DEAP",":","https",":","\/\/code.google.com\/p\/deap\/","..","_NumPy",":","http",":","\/\/www.numpy.org"]
docstr: Verify that we can effectively make a solver.
  The doctest has to be skipped from automated builds, because DEAP may not be available
  and yet we want documentation to be generated.
  
  >>> s = CMA_ES.suggest_from_seed(30, x=1.0, y=-1.0, z=2.0)
  >>> solver = CMA_ES(**s) #doctest:+SKIP
docstr_tok: ["Verify","that","we","can","effectively","make","a","solver",".","The","doctest","has","to","be","skipped","from","automated","builds",",","because","DEAP","may","not","be","available","and","yet","we","want","documentation","to","be","generated",".",">",">",">","s","=","CMA_ES.suggest_from_seed","(","30",",","x=1.0",",","y=-1.0",",","z=2.0",")",">",">",">","solver","=","CMA_ES","(","*","*","s",")","#","doctest",":","+SKIP"]
code: def suggest_from_seed(num_evals, **kwargs):
      """Verify that we can effectively make a solver.
      The doctest has to be skipped from automated builds, because DEAP may not be available
      and yet we want documentation to be generated.
  
      >>> s = CMA_ES.suggest_from_seed(30, x=1.0, y=-1.0, z=2.0)
      >>> solver = CMA_ES(**s) #doctest:+SKIP
  
      """
      fertility = 4 + 3 * math.log(len(kwargs))
      d = dict(kwargs)
      d["num_generations"] = int(
          math.ceil(float(num_evals) / fertility)
      )
      # num_gen is overestimated
      # this will require slightly more function evaluations than permitted by num_evals
      return d
  
file_path: optunity/optunity/solvers/CMAES.py
imports: import math
  import functools
  from .solver_registry import register_solver
  from .util import Solver, _copydoc
  from .None import util
label_desc: Use image node_id 2 for calling the CMA_ES obj's underlying member method code with example usage: obj.suggest_from_seed(num_evals) and returns: d