https://github.com/mpolinowski/sklearn-model-deployment
Use Flask, Docker and React.js to Deploy your SKLearn Model to the Web
https://github.com/mpolinowski/sklearn-model-deployment
docker flask-api prediction-model reactjs sklearn vitejs-react
Last synced: 5 months ago
JSON representation
Use Flask, Docker and React.js to Deploy your SKLearn Model to the Web
- Host: GitHub
- URL: https://github.com/mpolinowski/sklearn-model-deployment
- Owner: mpolinowski
- Created: 2023-06-18T14:58:47.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-19T13:58:36.000Z (over 2 years ago)
- Last Synced: 2025-06-08T01:42:20.239Z (9 months ago)
- Topics: docker, flask-api, prediction-model, reactjs, sklearn, vitejs-react
- Language: Jupyter Notebook
- Homepage: https://mpolinowski.github.io/docs/IoT-and-Machine-Learning/AIOps/2023-06-17-scikit-learn-model-deployment/2023-06-17
- Size: 351 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serving your SciKit Learn Model as a Prediction API
1. [Preparing the ML Model](https://mpolinowski.github.io/docs/IoT-and-Machine-Learning/AIOps/2023-06-17-scikit-learn-model-deployment/2023-06-17#preparing-the-ml-model)
* Pick a SKLearn model that fits your dataset
* Preprocess your dataset and do test trainings / hyperparameter tuning
* Fit the model to your dataset
* Pickle the trained model for deployment
2. [Preparing the Model API](https://mpolinowski.github.io/docs/IoT-and-Machine-Learning/AIOps/2023-06-17-scikit-learn-model-deployment/2023-06-17#preparing-the-model-api)
* Use Flask to prepare a REST API endpoint for your model
* Test predictions using HTTP POST requests
3. [Containerizing the Application](https://mpolinowski.github.io/docs/IoT-and-Machine-Learning/AIOps/2023-06-17-scikit-learn-model-deployment/2023-06-17#containerizing-the-application)
* Wrap the Flask application in a Docker image
4. [React.js Frontend](https://mpolinowski.github.io/docs/IoT-and-Machine-Learning/AIOps/2023-06-17-scikit-learn-model-deployment/2023-06-17#reactjs-frontend)
* Write a React.js frontend that can interface with your REST API
4. [Serve Frontend using the Flask App](https://mpolinowski.github.io/docs/IoT-and-Machine-Learning/AIOps/2023-06-17-scikit-learn-model-deployment/2023-06-17#adding-the-frontend)
* Use Vite.js to render the React frontend to static HTML
* Add a static route to your Flask app to serve the frontend from inside the Docker image
