Skip to main content

This is a package which aims to combine the lighweight web-framework flask

Project description

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:

pip install flaskriver
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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flaskriver-0.0.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

flaskriver-0.0.2-py2.py3-none-any.whl (3.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file flaskriver-0.0.2.tar.gz.

File metadata

  • Download URL: flaskriver-0.0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for flaskriver-0.0.2.tar.gz
Algorithm Hash digest
SHA256 47c6a2b70075a779e4bc4714903884508322da0fa12f6fc11e11a31a495d87f5
MD5 cff3d00cad9cccfc49e5bc8f680c6c7a
BLAKE2b-256 de602969ccff46f82ce9fffc42d01b830f4a8b800db1839cdc4db111d873fd1c

See more details on using hashes here.

File details

Details for the file flaskriver-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: flaskriver-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for flaskriver-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d4ba484f6ded2e9adf052c7d1916d46ff81dfdbf8dfda67a4eb43ef81a4e5c1d
MD5 19b93f1676bf44d331859fb09c43d7ce
BLAKE2b-256 8a45b84f2fa7e670ede6783ec165aebfa71a5caff3836491fd697d9ef7e6ef50

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page