neverfly
2014-10-30 14:26:54 UTC
I am a newbie to bottlepy although I love its beauty at the first glance.
The problem comes when I use bottle to construct a machine learning
application. The application relies on an existing "machine learning"
model, and serve different users: every user may provide some inputs, and
the big model will reply these inputs. (To improve performance, we also
want to update the model using some user inputs although currently we
haven't implemented this function yet)
My question is, how to keep the "model" throughout the application. The
only solution I have now is to keep it as a global variable at the server
since it will be very time consuming to load the model from disk for every
user. But I am afraid global is not the best option. So I am posting here
and looking for advice.
Best
neverfly.
--
The problem comes when I use bottle to construct a machine learning
application. The application relies on an existing "machine learning"
model, and serve different users: every user may provide some inputs, and
the big model will reply these inputs. (To improve performance, we also
want to update the model using some user inputs although currently we
haven't implemented this function yet)
My question is, how to keep the "model" throughout the application. The
only solution I have now is to keep it as a global variable at the server
since it will be very time consuming to load the model from disk for every
user. But I am afraid global is not the best option. So I am posting here
and looking for advice.
Best
neverfly.
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.
---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.
---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.