This project hosts a Flask application that calculates salaries based on various factors.
The model was trained in a separate Jupyter notebook using the dataset from tidytuesday.
This is not about the data preparation or the model training but just hosts a shiny frontend to interact with the finished model.
Link to the hosted application: https://data-science.benelfen.com
Install data-science-flask
If wanted, Taskfile can be used.
A specific Python version is needed to interact with the model. Also, the specific versions of numpy and scikit are required. For that, the devcontainer should be used.
# Create new venv
python -m venv .venv
# Install packages
pip install -r requirements.txt
# Start application with Taskfile (binary is included in repository)
./task start
# Alternatively, start with Python directly
python app.py
To deploy this project run
docker compose up --build -d