pip install -r requirements.txt
python run.py --input data.csv --config config.yaml --output metrics.json --log-file run.log
docker build -t mlops-task . docker run --rm mlops-task
- Load config
- Validates dataset
- Computes rolling mean on close
- Generates binary signal
- Outputs metrics.json and run.log
{ "version": "v1", "rows_processed": 10000, "metric": "signal_rate", "value": 0.4991, "latency_ms": 119, "seed": 42, "status": "success" }
{ "version": "v1", "status": "error", "error_message": "Missing required column: close" }
- First window-1 rows produce NaNs and are excluded
- Metrics file is always written (success/error)