[SciPy-user] ga examples broken?

Jelle Feringa / EZCT Architecture & Design Research jelle.feringa at ezct.net
Mon Aug 7 10:53:55 CDT 2006


I just checked in the scipy.ga package from the svn server, but failed to
run the example:

 

 

c:\Python24\Lib\site-packages\scipy\ga>python examples.py

Warning: The key "migrants" in not a valid setting.

The valid settings are ['pop_size', 'p_replace', 'p_cross', 'p_mutate',
'p_devia

tion', 'gens', 'rand_seed', 'rand_alg', 'dbase', 'update_rate']

Warning: The key "num_pops" in not a valid setting.

The valid settings are ['pop_size', 'p_replace', 'p_cross', 'p_mutate',
'p_devia

tion', 'gens', 'rand_seed', 'rand_alg', 'dbase', 'update_rate']

Traceback (most recent call last):

  File "examples.py", line 64, in ?

    ex1()

  File "examples.py", line 60, in ex1

    galg.evolve()

  File "c:\Python24\lib\site-packages\scipy\ga\algorithm.py", line 127, in
evolv

e

    self.initialize()

  File "c:\Python24\lib\site-packages\scipy\ga\algorithm.py", line 60, in
initia

lize

    if reseed: rv.initialize(seed = sd, algorithm = alg)

AttributeError: 'module' object has no attribute 'initialize'

 

 

 

In [2]: sp.__version__

Out[2]: '0.4.9'

 

Might it possible broken, or is something the matter with my setup?

 

 

Thanks,

 

Jelle

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20060807/3bdfb2ce/attachment.html 


More information about the SciPy-user mailing list