-
Put historical transactions CSV at
data/transactions.csv. Required fields: transaction_id, amount, merchant_id, customer_id Optional: is_anomaly (0/1) for evaluation. -
Train model locally: $ cd src $ python train.py --csv ../data/transactions.csv
This writes models/iforest_model_v1.pkl
-
Run service with Docker Compose: $ docker-compose up --build
FastAPI will be available at http://localhost:8000 Health: GET http://localhost:8000/health Score: POST http://localhost:8000/score
-
Import
n8n-workflow.jsoninto n8n. Update HTTP Request node URL if needed. -
Production notes:
- Build CI to produce model artifact and push to artifact storage.
- Deploy scoring service behind HTTPS and an API gateway.
- Implement auth on scoring endpoint.
-
Notifications
You must be signed in to change notification settings - Fork 0
Portfolio Project: AI-driven financial transaction risk detection using automation workflows and real-time model scoring.
License
richardmukechiwa/financial-anomaly-detection
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Portfolio Project: AI-driven financial transaction risk detection using automation workflows and real-time model scoring.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published