FASTAPI ML Backend

A basic FASTAPI ML backend performing clustering on user click information. Clustering method used is DBSCAN alt text

Setup

To setup perform the following steps Create a python virtual environment and activate it

python -m venv venv
./venv/Scripts/Activate.psi

Install Requirements

pip install -r requirements.txt

To start the webserver run the following command The --reload parameter is meant for development and should be omitted for production

uvicorn app.main:app --reload

You can run tests by running:

python ./data/apptest.py

You can visualize appdata by running the ./data/Visualize_current_model.ipynb notebook