Metadata-Version: 2.1
Name: flaskriver
Version: 0.0.2
Summary: This is a package which aims to combine the lighweight web-framework flask
Author-email: Sebastian Wette  <mail@sebastianwette.de>
Description-Content-Type: text/markdown
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: flask
Project-URL: Home, https://deduce.de

# Flask-River:
This is a repository for an experimental project where I will try to combine the online ML capabilities of the library "River" with the lightweight web framework "Flask".

Example usage:

```sh
pip install flaskriver
```

```python
from flaskriver.Wrapper import FlaskRiver
from flask import Flask
from river import linear_model, metrics

model = linear_model.LogisticRegression()

mse = metrics.MSE()
accuracy = metrics.Accuracy()
metrics = [mse, accuracy]

flaskriver = FlaskRiver(model, metrics, predictions="proba")

app = Flask(__name__)
flaskriver.registerToApp(app)

if __name__ == "__main__":
    app.run(host="localhost", debug=True)

```


