amirziai / Sklearnflask
Licence: mit
Flask API for training and predicting using scikit learn models
Stars: ✭ 275
Programming Languages
python
139335 projects - #7 most used programming language
Labels
Projects that are alternatives of or similar to Sklearnflask
Python Flask Sklearn Docker Template
A simple example of python api for real time machine learning, using scikit-learn, Flask and Docker
Stars: ✭ 117 (-57.45%)
Mutual labels: flask, scikit-learn
Plotlydash Flask Tutorial
📊📉Embed Plotly Dash into your Flask applications.
Stars: ✭ 265 (-3.64%)
Mutual labels: flask
comparing-trajectory-clustering-methods
Comparing Different Clustering Methods and Similarity Metrics on Trajectory Datasets
Stars: ✭ 82 (-70.18%)
Mutual labels: scikit-learn
Flask Uwsgi Websocket
🔌 High-performance WebSockets for your Flask apps powered by uWSGI.
Stars: ✭ 259 (-5.82%)
Mutual labels: flask
Flask Security
Quick and simple security for Flask applications
Stars: ✭ 258 (-6.18%)
Mutual labels: flask
Smart Contract Search Engine
Takes a link to a smart contract's raw ABI file and an RPC URL and then indexes all instances of that smart contract
Stars: ✭ 265 (-3.64%)
Mutual labels: flask
Deep Learning In Production
In this repository, I will share some useful notes and references about deploying deep learning-based models in production.
Stars: ✭ 3,104 (+1028.73%)
Mutual labels: flask
Healthcheck
Write simple healthcheck functions for your Flask apps.
Stars: ✭ 254 (-7.64%)
Mutual labels: flask
Flask Session Cookie Manager
🍪 Flask Session Cookie Decoder/Encoder
Stars: ✭ 257 (-6.55%)
Mutual labels: flask
resume tailor
An unsupervised analysis combining topic modeling and clustering to preserve an individuals work history and credentials while tailoring their resume towards a new career field
Stars: ✭ 15 (-94.55%)
Mutual labels: scikit-learn
Nimbusml
Python machine learning package providing simple interoperability between ML.NET and scikit-learn components.
Stars: ✭ 265 (-3.64%)
Mutual labels: scikit-learn
feature engine
Feature engineering package with sklearn like functionality
Stars: ✭ 758 (+175.64%)
Mutual labels: scikit-learn
Youtube Dl Webui
Another webui for youtube-dl powered by Flask.
Stars: ✭ 254 (-7.64%)
Mutual labels: flask
Sk Dist
Distributed scikit-learn meta-estimators in PySpark
Stars: ✭ 260 (-5.45%)
Mutual labels: scikit-learn
Flask API for scikit learn
A simple Flask application that can serve predictions from a scikit-learn model. Reads a pickled sklearn model into memory when the Flask app is started and returns predictions through the /predict endpoint. You can also use the /train endpoint to train/retrain the model. Any sklearn model can be used for prediction.
Read more in this blog post.
Dependencies
- scikit-learn
- Flask
- pandas
- numpy
pip install -r requirements.txt
Running API
python main.py <port>
Endpoints
/predict (POST)
Returns an array of predictions given a JSON object representing independent variables. Here's a sample input:
[
{"Age": 85, "Sex": "male", "Embarked": "S"},
{"Age": 24, "Sex": "female", "Embarked": "C"},
{"Age": 3, "Sex": "male", "Embarked": "C"},
{"Age": 21, "Sex": "male", "Embarked": "S"}
]
and sample output:
{"prediction": [0, 1, 1, 0]}
/train (GET)
Trains the model. This is currently hard-coded to be a random forest model that is run on a subset of columns of the titanic dataset.
/wipe (GET)
Removes the trained model.
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].