This repository is hosted at https://github.com/MediaJohnD/data-science-projects.
Clone the repository:
git clone https://github.com/MediaJohnD/data-science-projects.git
cd data-science-projectsCreate a virtual environment and install dependencies:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtRun lint and tests:
flake8 src tests
pytest -qThis project implements a small demonstration of the OptiReveal workflow using Prefect for orchestration. A minimal sample data set is bundled with the code so that the full pipeline can be executed without external dependencies. The flow consists of the following stages:
- Ingest – load raw visit events.
- Feature Engineering – aggregate visits into device level features.
- Model Training – train a logistic regression model predicting visitor propensity.
- Monitoring – log basic metrics.
- Triggers – create simple contextual triggers.
- Deployment – expose a FastAPI scoring service.
Run the end-to-end flow locally:
python src/pipeline.pyAn end-to-end example of the pipeline can be found in
full_pipeline_summary.ipynb.