serverless-machine-learning | deploy serverless Machine Learning Microservice | Serverless library
kandi X-RAY | serverless-machine-learning Summary
kandi X-RAY | serverless-machine-learning Summary
This repository accompanies my blog post How to deploy a Serverless Machine Learning Microservice with AWS Lambda, AWS API Gateway and scikit-learn.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get prediction
- Load a model from S3
- Predict a model
serverless-machine-learning Key Features
serverless-machine-learning Examples and Code Snippets
Community Discussions
Trending Discussions on serverless-machine-learning
QUESTION
I have a trained machine learning model to predict one metric of my data in firestore.
I have inserted data into bigquery to train the model and ones it is trained I want to deploy it to make predictions and insert this predictions again in firestore.
I have been reading a lot how to do this and finally I have found a way to do it: https://angularfirebase.com/lessons/serverless-machine-learning-with-python-and-firebase-cloud-functions/
I have a few questions of this guide:
- In the 4th step of this guide he save the model in firebase_admin storage. Why in firebase_admin storage and not in a google cloud storage?
- He deploy the model in Google cloud ML engine. Why he do that? what advantadges I have to deploy the model there instead of save the model in Google cloud storage and after that call it in cloud functions? or it is necessary to do this step?
- Once he deploy this model in Google cloud ML engine I can call it in a cloud fuction in python to run the model whatever the trigger I choose?
ANSWER
Answered 2019-Oct-18 at 11:491) You can use Cloud Storage, as well. In the tutorial he suggests a way of achieving something, but it is not the single absolute way.
2) You can also do what you have said, but the way from that tutorial is better, I would say. You have the advantage of exposing your model as an API endpoint. This way you will have less work to do in the Cloud Functions code which is good.
3) I am not sure if I understood this question. You should use a HTTP trigger since you are trying to hit an API endpoint.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install serverless-machine-learning
You can use serverless-machine-learning like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page