This is a minimal MLOps-style batch job that computes a rolling mean and generates a binary signal from an OHLCV dataset.
Ensure you have Python 3.9+ installed.
-
Install dependencies:
pip install -r requirements.txt
-
Run the script:
python run.py --input data.csv --config config.yaml --output metrics.json --log-file run.log
-
Build the Docker image:
docker build -t mlops-task . -
Run the Docker container:
docker run --rm mlops-task
{
"version": "v1",
"rows_processed": 10000,
"metric": "signal_rate",
"value": 0.499,
"latency_ms": 127,
"seed": 42,
"status": "success"
}