[SciPy-user] Has anyone use the GA module in SciPy?

Qingliang Li qlli at ctb.pku.edu.cn
Mon Oct 4 11:02:00 CDT 2004


Hi everyone,

I am beginner using scipy. I have tryed several ways to install scipy in
my computer(Fedora core1). But every times when run the example.py file
($python example.py) of GA module(in the
/path/to/python_x.x/site-packages/scipy/ga/). It raises the following
errors. What is the wrong with the GA module, or it is because I did not
install the scipy in a correct way?
Another question: I want to use the Genetic Algorithm in scipy, but it
seems that there is not a instruction about the usage. 
Can someone help me? 
Any help will be appreciated. ^_^

Error goes like this when I run the file of example.py:
  Warning: The key "migrants" in not a valid setting.
 The valid settings are ['pop_size', 'p_replace', 'p_cross',   
'p_mutate', 'p_deviation', '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_deviation', 'gens', 'rand_seed', 'rand_alg', 'dbase', 'update_rate']
initializing... seed = 10161042
beigninning genome generation
finished generation:  0.24
evals:  250
evaluation time:  0.03
gen: 0 max: 1.761510717868805 dev: 0.59021618153112299 eval time: 0.37
Traceback (most recent call last)
.......


-- 
Qingliang Li
Center for Theoretical Biology,
Peking University, Beijing,
P.R.China, 100871
                                                                                
Email: qlli at ctb.pku.edu.cn
Tel: +86-010-6275-9669




More information about the SciPy-user mailing list