Skip to content

Commit cb0013a

Browse files
committed
fixup more_algorithms
1 parent 9df4823 commit cb0013a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cma/more_algorithms/purecma.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def fmin(objective_fct, xstart, sigma,
114114
=======
115115
The following example minimizes the function `ff.elli`:
116116
117-
>>> try: import cma.purecma as purecma
117+
>>> try: from cma import purecma
118118
... except ImportError: import purecma
119119
>>> def felli(x):
120120
... return sum(10**(6 * i / (len(x)-1)) * xi**2
@@ -495,7 +495,7 @@ class CMAESDataLogger(_BaseDataLogger): # could also inherit from object
495495
496496
Use the default logger from `CMAES`:
497497
498-
>>> try: import cma.purecma as pcma
498+
>>> try: from cma import purecma as pcma
499499
... except ImportError: import purecma as pcma
500500
>>> es = pcma.CMAES(3 * [0.1], 1)
501501
>>> isinstance(es.logger, pcma.CMAESDataLogger) # type(es.logger)

0 commit comments

Comments
 (0)