inspirehep / magpie

Deep neural network framework for multi-label text classification
MIT License
684 stars 192 forks source link

How to use your great package on Google Cloud ML Engine? #129

Open stuartnankai opened 6 years ago

stuartnankai commented 6 years ago

Hi!

Thank you so much for your powerful package, I am just wondering can I use it on the Google Cloud ML Engine? Maybe more general question, how can I deploy my pre-trained model at somewhere such as Ruby? Any tutorial will be appreciated!

Cheers,

jstypka commented 6 years ago

Hey @stuartnankai ! Magpie is a Python package, so you'd need to put in some work to make it talk to your Ruby app.

For the ML Engine it should be simpler. As far as I know, it runs on Python code and supports external libraries so it should be possible. I assume you'd have to include it in a requirements.txt file somewhere and call it from the trainer, but you'd need to read their docs exactly to figure that out.

Best of luck!

stuartnankai commented 6 years ago

Thanks! I will try to figure it out!

On 1 March 2018 at 14:45:36, Jan Stypka (notifications@github.com) wrote:

Hey @stuartnankai https://github.com/stuartnankai ! Magpie is a Python package, so you'd need to put in some work to make it talk to your Ruby app.

For the ML Engine it should be simpler. As far as I know, it runs on Python code and supports external libraries so it should be possible. I assume you'd have to include it in a requirements.txt file somewhere and call it from the trainer, but you'd need to read their docs exactly to figure that out.

Best of luck!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/inspirehep/magpie/issues/129#issuecomment-369595665, or mute the thread https://github.com/notifications/unsubscribe-auth/AQVDUIzXGitGcq4mhoUyRfJ2zFsu2g_5ks5tZ_t6gaJpZM4SYPcf .

denissellu commented 6 years ago

You may have solved your problem but if anyone else wants to know how to achieve this, I wrote a tutorial on how to do so.

stuartnankai commented 6 years ago

Thanks a lot!

Cheers,

Jian

On Tue, 14 Aug 2018 at 14:03, Denis Sellu notifications@github.com wrote:

You may have solved your problem but if anyone else wants to know how to archive this, I wrote a tutorial https://www.cookieshq.co.uk/posts/how-to-use-trained-keras-and-tensorflow-machine-learning-models-within-ruby-on-rails on how to do so.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/inspirehep/magpie/issues/129#issuecomment-412848816, or mute the thread https://github.com/notifications/unsubscribe-auth/AQVDUFKmqJGRh8l8C92fDwWJktivnlSyks5uQrx6gaJpZM4SYPcf .