Homework for 'Machine Learning in Production' course
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
poetry install
poetry run python ml_project/run.py train configs/train_config.yaml
poetry run python ml_project/run.py predict models/model.pkl data/train.csv predicts.npy
PATH_TO_MODEL="models/model.pkl" poetry run python ml_project/app.py
poetry run pytest tests/.
pull latest build
docker pull ivanovnikolayyy/made_ml_in_prod:latest
or build your own docker image
docker build -t <docker_id>/<name>:<tag> .
run app in docker container
docker run -p 8000:8000 <docker_id>/<name>:<tag>
after application startup complete, in separate tab run
python ml_project/make_request.py
docker compose down -v
docker compose up --build