https://github.com/thesage21/mltoweb
Sklearn models to basic bottle web app
https://github.com/thesage21/mltoweb
Last synced: about 1 month ago
JSON representation
Sklearn models to basic bottle web app
- Host: GitHub
- URL: https://github.com/thesage21/mltoweb
- Owner: theSage21
- Created: 2017-02-20T19:02:16.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-20T19:18:57.000Z (about 8 years ago)
- Last Synced: 2025-01-28T21:29:02.376Z (3 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ML to Web
=========Make a quick demo website for your sklearn models
Installation
------------```bash
pip install git+https://github.com/theSage21/mltoweb
```Usage
-----```python
import mltoweb
import pandas as pd
import numpy as np
from sklearn.ensemble import RandomForestClassifierest = RandomForestClassifier()
X = pd.DataFrame(np.random.random((10, 3)), columns=['x', 'y', 'z'])
y = (X < 0.5).astype(int)mltoweb.make_web(est, X, y, 'web')
```This creates 2 files in a directory called `web`, namely:
- `estimator.pickle`: This is the pickle of the estimator used to create predictions
- `website.py`: A bottle app which provides a form to start getting predictions from your data