[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 received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 implemented it incorrectly.

G

On Tuesday, November 14, 2017 at 7:43:14 PM UTC, Massimo Di Pierro wrote:
>
> 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 not. You have to check that.
>
> Massimo
>
> On Monday, 13 November 2017 23:57:25 UTC-6, GIsaac wrote:
>>
>> Hi all,
>>
>> I'm doing a project which will be based around web frameworks and 
>> adaptivity using machine learning, and have been looking into the 
>> possibility of using web2py.
>>
>> Is it possible to import/use the Scikit-learn library with web2py? Has 
>> anyone here done this? 
>> I understand that it is possible to import other python libraries into 
>> web2py, however haven't seen any examples of people doing this with scikit 
>> specifically.
>>
>> Many thanks for any help that can be given.
>>
>

-- 
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 received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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:
- 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 received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 not. You have to check that.

Massimo

On Monday, 13 November 2017 23:57:25 UTC-6, GIsaac wrote:
>
> Hi all,
>
> I'm doing a project which will be based around web frameworks and 
> adaptivity using machine learning, and have been looking into the 
> possibility of using web2py.
>
> Is it possible to import/use the Scikit-learn library with web2py? Has 
> anyone here done this? 
> I understand that it is possible to import other python libraries into 
> web2py, however haven't seen any examples of people doing this with scikit 
> specifically.
>
> Many thanks for any help that can be given.
>

-- 
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 received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.