A hosted version of the model can be found on Streamlit here.
Open up a Terminal and enter the following commands:
git clone https://github.com/underdoge/fraud-detection
cd fraud-detection
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
mlflow server
python fraud_detection_flow.py run --source-file data/credit_card_transactions-ibm_v2.csv
python import_mlflow_model.py
bentoml models list
cd service
bentoml serve service.py --reload
bentoml build
bentoml list
bentoml containerize <model tag from previous step e.g. fraud-detection-service:worn7ggjg2q63yqs>
docker run -p 3000:3000 <model tag from previous step e.g. fraud-detection-service:worn7ggjg2q63yqs>
- Python 3.11.6 or greater
- Git (to clone the repo)
- Docker (to create Docker image)