DEAP release 1.0.0: Distributed Evolutionary Algorithms in Python

2014-02-21 Thread Félix-Antoine Fortin
After more than 4 years of development, we are proud to announce the release of DEAP 1.0.0. You can download a copy of this release at the following web page. https://pypi.python.org/pypi/deap DEAP (Distributed Evolutionary Algorithms in Python) is a novel evolutionary computation framework

Re: Algorithms using Python?

2012-09-27 Thread 88888 Dihedral
algorithms using Python? Depends on what you mean by foundational... Since Python has dynamic lists and dictionaries, I suspect you won't find any textbook focusing on linked-list or hashed lookup algorithms using Python. You can probably implement them

Re: Algorithms using Python?

2012-09-26 Thread Wayne Werner
On Fri, 21 Sep 2012, Dennis Lee Bieber wrote: On Fri, 21 Sep 2012 14:26:04 +0530, Mayuresh Kathe mayur...@kathe.in declaimed the following in gmane.comp.python.general: Is there a good book on foundational as well as advanced algorithms using Python? Depends on what you mean

Algorithms using Python?

2012-09-21 Thread Mayuresh Kathe
Is there a good book on foundational as well as advanced algorithms using Python? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Algorithms using Python?

2012-09-21 Thread Joel Goldstick
On Fri, Sep 21, 2012 at 4:56 AM, Mayuresh Kathe mayur...@kathe.in wrote: Is there a good book on foundational as well as advanced algorithms using Python? Thanks. -- http://mail.python.org/mailman/listinfo/python-list There is one on Apress that I've seen http://www.amazon.com/Python

Re: Algorithms using Python?

2012-09-21 Thread Ian Kelly
On Fri, Sep 21, 2012 at 1:45 PM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: You can probably implement them, but they're not going to be very efficient. (And never remove an element from the linked-list implementation because Python would shift all the other elements, hence your

Re: Re: Algorithms using Python?

2012-09-21 Thread Evan Driscoll
On 09/21/2012 02:45 PM, Dennis Lee Bieber wrote: On Fri, 21 Sep 2012 14:26:04 +0530, Mayuresh Kathe mayur...@kathe.in declaimed the following in gmane.comp.python.general: Is there a good book on foundational as well as advanced algorithms using Python? Depends on what you mean

Re: Algorithms using Python?

2012-09-21 Thread Steven D'Aprano
On Fri, 21 Sep 2012 17:14:14 -0400, Dennis Lee Bieber wrote: On Fri, 21 Sep 2012 14:07:01 -0600, Ian Kelly ian.g.ke...@gmail.com declaimed the following in gmane.comp.python.general: It seems to work fine to me. You are working with dynamically allocated memory for the nodes;

Algorithms in Python, #n+1

2012-05-16 Thread Antti J Ylikoski
I have continued my research in literature algorithms in Python. The algorithms in Knuth's volumes 1 -- 3 either have been incorporated into Python, or they can be easily implemented with Python. Quite as John Nagle said here. However, the Fascicles in Vol. 4 to my opinion contain nontrivially

Algorithms in Python, cont'd

2012-05-03 Thread Antti J Ylikoski
carried out a search procedure -- and found two good sources of algorithms for the Python programmer: 1) Cormen-Leiserson-Rivest-Stein: Introduction to Algorithms, 2nd edition, ISBN 0-262-53196-8. The 3rd edition has been published, I don't know which one is the most recent one. 2) Atallah-Blanton

DEAP 0.8 released - Distributed Evolutionary Algorithms in Python

2012-04-06 Thread Félix-Antoine Fortin
Hi everyone, We are proud to annouce the release of DEAP 0.8, a library for doing Distributed Evolutionary Algorithms in Python. You can download a copy of this release at the following web page. http://deap.googlecode.com This release includes : - compatibility with Python 3

Re: Algorithms in Python

2012-01-26 Thread Chetan Harjani
On Thu, Jan 26, 2012 at 2:22 AM, Martin Schöön martin.sch...@gmail.com wrote: On 2012-01-25, Chetan Harjani chetan.harj...@gmail.com wrote: Thanks Alec for the link. U know I wanted to read this book by Simon Singh - The Code Book, I hear its good. It indeed is. I only remember one error, an

Algorithms in Python

2012-01-25 Thread Chetan Harjani
Is there any book or site on python algorithms which asks more and teaches less, I don't want to get bored, and at the same time I want to learn and act more. I use ubuntu. (just in case if its needed). #ALGORITHMS -- Chetan H Harjani IIT Delhi -- http://mail.python.org/mailman/listinfo/python

Re: Algorithms in Python

2012-01-25 Thread Alec Taylor
The thing about algorithms is they are applicable to many programming languages (in general). Read http://en.wikipedia.org/wiki/Turing_machine On Wed, Jan 25, 2012 at 9:06 PM, Chetan Harjani chetan.harj...@gmail.com wrote: Is there any book or site on python algorithms which asks more

Re: Algorithms in Python

2012-01-25 Thread Nizamov Shawkat
2012/1/25 Chetan Harjani chetan.harj...@gmail.com: Is there any book or site on python algorithms which asks more and teaches less, I don't want to get bored, and at the same time I want to learn and act more. I use ubuntu. (just in case if its needed). #ALGORITHMS There is a Stanford online

Re: Algorithms in Python

2012-01-25 Thread Thijs Engels
I assume you have seen this book? http://www.apress.com/9781430232377 Thijs On Wed, Jan 25, 2012, at 15:36, Chetan Harjani wrote: Is there any book or site on python algorithms which asks more and teaches less, I don't want to get bored, and at the same time I want to learn and act more. I

Re: Algorithms in Python

2012-01-25 Thread Visgean Skeloru
/1/25 Chetan Harjani chetan.harj...@gmail.com Is there any book or site on python algorithms which asks more and teaches less, I don't want to get bored, and at the same time I want to learn and act more. I use ubuntu. (just in case if its needed). #ALGORITHMS -- Chetan H Harjani IIT Delhi

Re: Algorithms in Python

2012-01-25 Thread Chetan Harjani
Thanks Alec for the link. U know I wanted to read this book by Simon Singh - The Code Book, I hear its good. Thanks Nizamov for the link, I am really looking forward to join the class, and since its free, it is totally an asset. Yes Thijs I have seen this book, and since its such a big book, I

Re: Algorithms in Python

2012-01-25 Thread Martin Schöön
On 2012-01-25, Chetan Harjani chetan.harj...@gmail.com wrote: Thanks Alec for the link. U know I wanted to read this book by Simon Singh - The Code Book, I hear its good. It indeed is. I only remember one error, an error every Scandinavian would have spotted. His book on Fermat's theorem is

DEAP 0.7 : Distributed Evolutionary Algorithms in Python

2011-07-08 Thread Félix-Antoine Fortin
Hi everyone, We are proud to annouce the release of DEAP 0.7, a library for doing Distributed Evolutionary Algorithms in Python. You can download a copy of this release at the following web page. http://deap.googlecode.com For those who wouldn't already know about the project, it is built

Evolutionary Algorithms in Python (EAP) First Public Release (0.6)

2010-10-08 Thread Félix-Antoine Fortin
Hi everyone, We are proud to announce the first public release of EAP, a library for doing Evolutionary Algorithms in Python. You can download a copy of this open source project at the following web page. http://deap.googlecode.com EAP has been built using the Python and UNIX programming

Re: Lockless algorithms in python (Nothing to do with GIL)

2010-07-06 Thread Zac Burns
I'm not an expert on this, but wouldn't it be more dependent on the platform than python version? Perhaps it is Windows 7 that is very slow. Perhaps my processor architecture. Not sure... Here are some for 3.1.2x64 import timeit timeit.timeit('Lock()', 'from threading import Lock')

Re: Lockless algorithms in python (Nothing to do with GIL)

2010-07-02 Thread Antoine Pitrou
On Mon, 28 Jun 2010 16:46:41 -0700 Zac Burns zac...@gmail.com wrote: In my experience it is far more expensive to allocate a lock in python then it is the types that use them. Here are some examples: timeit.timeit('Lock()', 'from threading import Lock') 1.4449114807669048

Lockless algorithms in python (Nothing to do with GIL)

2010-06-28 Thread Zac Burns
In my experience it is far more expensive to allocate a lock in python then it is the types that use them. Here are some examples: timeit.timeit('Lock()', 'from threading import Lock') 1.4449114807669048 timeit.timeit('dict()') 0.2821554294221187 timeit.timeit('list()') 0.17358153222312467

Re: Lockless algorithms in python (Nothing to do with GIL)

2010-06-28 Thread Ryan Kelly
On Mon, 2010-06-28 at 16:46 -0700, Zac Burns wrote: In my experience it is far more expensive to allocate a lock in python then it is the types that use them. Here are some examples: timeit.timeit('Lock()', 'from threading import Lock') 1.4449114807669048 timeit.timeit('dict()')

Re: Lockless algorithms in python (Nothing to do with GIL)

2010-06-28 Thread Zac Burns
Sure, but I think you're timing the wrong thing here. You would only allocate the lock relatively rarely - it's the overhead of *acquiring* the lock that's the real problem. r...@durian:~$ python -m timeit -s from threading import Lock; l = Lock() l.acquire(); l.release() 100

Re: Lockless algorithms in python (Nothing to do with GIL)

2010-06-28 Thread Ryan Kelly
On Mon, 2010-06-28 at 18:27 -0700, Zac Burns wrote: I've managed to avoid locking in some cases by using dict.setdefault() as a kind of atomic test-and-set operation. It's not a full compare-and-swap but you could implement a simple locking scheme

Re: Lockless algorithms in python (Nothing to do with GIL)

2010-06-28 Thread sturlamolden
Many lockless algorithms that I have looked at thusfar require a Compare and Swap operation. Does python have an equivalent to this? Is python high level enough that it has something better than this or it simply doesn't need it? Python does have a GIL, and contrary to the title, this

Re: Lockless algorithms in python (Nothing to do with GIL)

2010-06-28 Thread sturlamolden
Many lockless algorithms that I have looked at thusfar require a Compare and Swap operation. Does python have an equivalent to this? Is python high level enough that it has something better than this or it simply doesn't need it? Python does have a GIL, and contrary to the title, this

Re: Lockless algorithms in python (Nothing to do with GIL)

2010-06-28 Thread Ryan Kelly
On Mon, 2010-06-28 at 19:45 -0700, sturlamolden wrote: Many lockless algorithms that I have looked at thusfar require a Compare and Swap operation. Does python have an equivalent to this? Is python high level enough that it has something better than this or it simply doesn't need it?

Re: Lockless algorithms in python (Nothing to do with GIL)

2010-06-28 Thread sturlamolden
On 29 Jun, 05:11, Ryan Kelly r...@rfk.id.au wrote: Very interesting idea.  Will it work if accessed through ctypes?    ticker = ctypes.c_int.in_dll(ctypes.pythonapi,_Py_Ticker)    ticker.value = 0x7fff Or does ctypes muck with the GIL in a way that would break this idea?

genetic algorithms in Python?

2009-04-08 Thread Esmail
Hello, Anyone using Python for coding up genetic algorithms? If so, would you share your favorite modules/libraries/tools? Thanks, Esmail -- http://mail.python.org/mailman/listinfo/python-list

Re: genetic algorithms in Python?

2009-04-08 Thread Mohammed Mediani
I have done something in this direction. I will be happy to share my experience. However, my code is not generic and needs many things to be manually introduced. My GA is standard (selection by roulette wheel or tournament, single point cross). Let me know if you are interested! On Wed, Apr 8,

Re: genetic algorithms in Python??

2009-04-08 Thread Esmail
Hello Mohammed, Yes, that would great. While I am comfortable with GAs, I'm still rather inexperienced with Python so seeing some implementation examples would be very useful. Thanks, Esmail -- Date: Wed, 8 Apr 2009 17:08:48 +0200 Subject: Re: genetic algorithms in Python? From: medmedi

Re: genetic algorithms in Python??

2009-04-08 Thread R. David Murray
Esmail esmail...@gmail.com wrote: Hello Mohammed, Yes, that would great. While I am comfortable with GAs, I'm still rather inexperienced with Python so seeing some implementation examples would be very useful. A google for 'python genetic algorithms' turns up a number of interesting hits

Re: genetic algorithms in Python?

2009-04-08 Thread Terry Reedy
Esmail wrote: Hello, Anyone using Python for coding up genetic algorithms? If so, would you share your favorite modules/libraries/tools? Search 'Python genetic algorithm' on Google or elsewhere. -- http://mail.python.org/mailman/listinfo/python-list

Re: genetic algorithms in Python??

2009-04-08 Thread Esmail
R. David Murray wrote: Esmail esmail...@gmail.com wrote: Hello Mohammed, Yes, that would great. While I am comfortable with GAs, I'm still rather inexperienced with Python so seeing some implementation examples would be very useful. A google for 'python genetic algorithms' turns up a number

Re: genetic algorithms in Python?

2009-04-08 Thread Esmail
Terry Reedy wrote: Esmail wrote: Hello, Anyone using Python for coding up genetic algorithms? If so, would you share your favorite modules/libraries/tools? Search 'Python genetic algorithm' on Google or elsewhere. Hi Terry, I did that first, and I came up with a number of hits. The

Optimal Control Algorithms in Python

2006-01-11 Thread aprasad21k
Is anyone aware of Python code for Optimal Control Algorithms based on Pontryagin's Maximum Principle? Thanks in advance for any leads on this. -- http://mail.python.org/mailman/listinfo/python-list

Re: Optimal Control Algorithms in Python

2006-01-11 Thread [EMAIL PROTECTED]
Not exactly but I am aware of Python code for nonlinear optimization algorithms. Check the nlpy project at http://nlpy.sf.net It is specifically targeted at finite-dimensional problems. However the current trend in optimal control algorithms is to use grid-refinement and iteratively solve