All Projects → Soluto → Python Flask Sklearn Docker Template

Soluto / Python Flask Sklearn Docker Template

A simple example of python api for real time machine learning, using scikit-learn, Flask and Docker

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Python Flask Sklearn Docker Template

Profanity Check
A fast, robust Python library to check for offensive language in strings.
Stars: ✭ 354 (+202.56%)
Mutual labels:  scikit-learn, sklearn
Machinelearningstocks
Using python and scikit-learn to make stock predictions
Stars: ✭ 897 (+666.67%)
Mutual labels:  scikit-learn, sklearn
Hungabunga
HungaBunga: Brute-Force all sklearn models with all parameters using .fit .predict!
Stars: ✭ 614 (+424.79%)
Mutual labels:  scikit-learn, sklearn
python3-docker-devenv
Docker Start Guide with Python Development Environment
Stars: ✭ 13 (-88.89%)
Mutual labels:  scikit-learn, sklearn
Reddit Stance Classifier
A Flask webapp & Python scripts for predicting reddit users' political leaning, using their comment history.
Stars: ✭ 52 (-55.56%)
Mutual labels:  flask, sklearn
Sklearnflask
Flask API for training and predicting using scikit learn models
Stars: ✭ 275 (+135.04%)
Mutual labels:  flask, scikit-learn
Facial Expression Recognition Svm
Training SVM classifier to recognize people expressions (emotions) on Fer2013 dataset
Stars: ✭ 110 (-5.98%)
Mutual labels:  scikit-learn, sklearn
sklearn-audio-classification
An in-depth analysis of audio classification on the RAVDESS dataset. Feature engineering, hyperparameter optimization, model evaluation, and cross-validation with a variety of ML techniques and MLP
Stars: ✭ 31 (-73.5%)
Mutual labels:  scikit-learn, sklearn
Sklearn Porter
Transpile trained scikit-learn estimators to C, Java, JavaScript and others.
Stars: ✭ 1,014 (+766.67%)
Mutual labels:  scikit-learn, sklearn
Traingenerator
🧙 A web app to generate template code for machine learning
Stars: ✭ 948 (+710.26%)
Mutual labels:  scikit-learn, sklearn
skippa
SciKIt-learn Pipeline in PAndas
Stars: ✭ 33 (-71.79%)
Mutual labels:  scikit-learn, sklearn
Ml code
A repository for recording the machine learning code
Stars: ✭ 75 (-35.9%)
Mutual labels:  scikit-learn, sklearn
Kaio-machine-learning-human-face-detection
Machine Learning project a case study focused on the interaction with digital characters, using a character called "Kaio", which, based on the automatic detection of facial expressions and classification of emotions, interacts with humans by classifying emotions and imitating expressions
Stars: ✭ 18 (-84.62%)
Mutual labels:  scikit-learn, sklearn
Sklearn Evaluation
Machine learning model evaluation made easy: plots, tables, HTML reports, experiment tracking and Jupyter notebook analysis.
Stars: ✭ 294 (+151.28%)
Mutual labels:  scikit-learn, sklearn
scikit-learn
به فارسی، برای مشارکت scikit-learn
Stars: ✭ 19 (-83.76%)
Mutual labels:  scikit-learn, sklearn
Hyperparameter hunter
Easy hyperparameter optimization and automatic result saving across machine learning algorithms and libraries
Stars: ✭ 648 (+453.85%)
Mutual labels:  scikit-learn, sklearn
KMeans elbow
Code for determining optimal number of clusters for K-means algorithm using the 'elbow criterion'
Stars: ✭ 35 (-70.09%)
Mutual labels:  scikit-learn, sklearn
playground
A Streamlit application to play with machine learning models directly from the browser
Stars: ✭ 48 (-58.97%)
Mutual labels:  scikit-learn, sklearn
Ailearning
AiLearning: 机器学习 - MachineLearning - ML、深度学习 - DeepLearning - DL、自然语言处理 NLP
Stars: ✭ 32,316 (+27520.51%)
Mutual labels:  scikit-learn, sklearn
Mlatimperial2017
Materials for the course of machine learning at Imperial College organized by Yandex SDA
Stars: ✭ 71 (-39.32%)
Mutual labels:  scikit-learn, sklearn

python-flask-docker-sklearn-template

A simple example of python api for real time machine learning. On init, a simple linear regression model is created and saved on machine. On request arrival for prediction, the simple model is loaded and returning prediction.
For more information read this post

requirements

docker installed

Run on docker - local

docker build . -t {some tag name} -f ./Dockerfile_local
detached : docker run -p 3000:5000 -d {some tag name}
interactive (recommended for debug): docker run -p 3000:5000 -it {some tag name}

Run on docker - production

Using uWSGI and nginx for production
docker build . -t {some tag name}
detached : docker run -p 3000:80 -d {some tag name}
interactive (recommended for debug): docker run -p 3000:80 -it {some tag name}

Run on local computer

python -m venv env
source env/bin/activate
python -m pip install -r ./requirements.txt
python main.py

Use sample api

127.0.0.1:3000/isAlive
127.0.0.1:3000/prediction/api/v1.0/some_prediction?f1=4&f2=4&f3=4

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].