[web2py] Re: Web2py and machine learning - scikit-learn

2017-11-19 Thread Leonel Câmara
Depending on how you use matplotlib you may need to surround your calls with a lock section. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You

[web2py] Re: Web2py and machine learning - scikit-learn

2017-11-19 Thread GIsaac
Thanks for your response! I've imported the libraries I was planning on using, however I noticed that Matplotlib doesn't seem to want to play nicely with Web2Py. If I try to produce a plot of my data set and open the web app, Web2Py will stop responding. Is this a known issue? Perhaps I have

[web2py] Re: Web2py and machine learning - scikit-learn

2017-11-17 Thread Pierre
found this related to locking : https://redis.io/topics/distlock topic is very hermetic so if someone successfully implemented a lock in the production context of a web application i would really appreciate he shares his esoteric knowledge with us: 'the ignorants' -- Resources: -

[web2py] Re: Web2py and machine learning - scikit-learn

2017-11-15 Thread Pierre
Is there a reliable way to determine whether or not a library is thread-safe ? what's the web2py method for locking ?(module: thread/threading ? what kind of lock with what option: blocking/non-blocking) ?) thanks -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Web2py and machine learning - scikit-learn

2017-11-14 Thread Massimo Di Pierro
I have. Works fine. You can import any python library in web2py as long as it is installed. You can have issues with libraries that are not thread safe and if they are, you will have to lock when using them. I do not know for sure which algos in scikit learn are thread safe and which ones are