sklearnflask | Flask API for training and predicting using scikit learn | Machine Learning library
kandi X-RAY | sklearnflask Summary
kandi X-RAY | sklearnflask Summary
Flask API for training and predicting using scikit learn models
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Train the model .
- Predict the model .
- Remove the model .
sklearnflask Key Features
sklearnflask Examples and Code Snippets
Community Discussions
Trending Discussions on sklearnflask
QUESTION
The code in this repo shows how to create a flask web endpoint to predict probability of 'surviving the titanic disaster'. The trained model is serialized as pickle file using joblib which takes as input age, ticket_class, boarding_location and gender to make the prediction.
Training data - https://www.kaggle.com/c/titanic/data
Architecture of AWS Sagemaker https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works-hosting.html
The architecture in the above diagram looks like a good way to containerize and deploy ML application.
Question
- How do I use containerize for the ML + flask application in repo on my laptop? My objective is to deploy the container in production environment.
- How do I run the above container?
ANSWER
Answered 2018-Aug-20 at 10:08For simplicity, let's create our image based on Ubuntu.
Create a file Dockerfile
in an empty directory with the following contents:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sklearnflask
You can use sklearnflask 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