Skip to main content

MLOps course MISIS University

Project description

mlops_misis

roman-shinkarenko-17 MLOps MISIS Course

Github Actions

Отправка в pypi при открытии pull request в main

Alt text

Билд докер образа и отправка в docker hub при создании тэга

Alt text

Запуск airflow

Перед первым запуском

mkdir -p ./dags ./logs ./plugins ./config
echo -e "AIRFLOW_UID=$(id -u)" > .env
make airflow_up

или

docker compose up airflow-init
docker compose up --build -d

Web доступен на 8080 порте

Логин: airflow
Пароль:airflow

Даги

Генерация датасета

img.png

Обучение модели

img.png

Сенсор предикт по файлу с удалением

img_1.png

pylint

pylint results

tests coverage and results

pytest

Запуск

  • установка зависимостей
pip install -r requirements.txt
  • конфигурация config.yaml
ml_model_params:
  ml_model_type: RandomForestClassifier # LogisticRegression | DecisionTreeClassifier
  max_depth: 10 # обязательный параметр для моделях на деревьях
  n_estimators: 100 # обязательный параметр для RandomForestClassifier
  C: 1.0 # обязательный параметр для LogisticRegression
  run_name: run_1 # название запуска
  validate_model: True # проводить валидацию модели или нет

data_params:
  n_features: 123 # число признаков
  n_samples: 1000 # количество объектов
  dataset_name: dataset_1 # название датасета
  train_size: 0.75 # часть выборки для обучения

Project Organization

├── LICENSE            <- Open-source license if one is chosen
├── Makefile           <- Makefile with convenience commands like `make data` or `make train`
├── README.md          <- The top-level README for developers using this project.
├── data
│   ├── external       <- Data from third party sources.
│   ├── interim        <- Intermediate data that has been transformed.
│   ├── processed      <- The final, canonical data sets for modeling.
│   └── raw            <- The original, immutable data dump.
│
├── docs               <- A default mkdocs project; see www.mkdocs.org for details
│
├── models             <- Trained and serialized models, model predictions, or model summaries
│
├── notebooks          <- Jupyter notebooks. Naming convention is a number (for ordering),
│                         the creator's initials, and a short `-` delimited description, e.g.
│                         `1.0-jqp-initial-data-exploration`.
│
├── pyproject.toml     <- Project configuration file with package metadata for 
│                         mlops_misis and configuration for tools like black
│
├── references         <- Data dictionaries, manuals, and all other explanatory materials.
│
├── reports            <- Generated analysis as HTML, PDF, LaTeX, etc.
│   └── figures        <- Generated graphics and figures to be used in reporting
│
├── requirements.txt   <- The requirements file for reproducing the analysis environment, e.g.
│                         generated with `pip freeze > requirements.txt`
│
├── setup.cfg          <- Configuration file for flake8
│
└── mlops_misis   <- Source code for use in this project.
    │
    ├── __init__.py             <- Makes mlops_misis a Python module
    │
    ├── config.py               <- Store useful variables and configuration
    │
    ├── dataset.py              <- Scripts to download or generate data
    │
    ├── features.py             <- Code to create features for modeling
    │
    ├── modeling                
    │   ├── __init__.py 
    │   ├── predict.py          <- Code to run model inference with trained models          
    │   └── train.py            <- Code to train models
    │
    └── plots.py                <- Code to create visualizations

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlops_misis-0.0.3.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlops_misis-0.0.3-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file mlops_misis-0.0.3.tar.gz.

File metadata

  • Download URL: mlops_misis-0.0.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for mlops_misis-0.0.3.tar.gz
Algorithm Hash digest
SHA256 699b38372c3100acdad052f3254c944cd8eb3fd6120ddf9d52ab0389b514d5a1
MD5 f95c47da409c761d08c80e4268311c00
BLAKE2b-256 13eb630fc57d886ace5cef9589f39317b311a38907e3b7f9a1f077d6c9a8e654

See more details on using hashes here.

File details

Details for the file mlops_misis-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: mlops_misis-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for mlops_misis-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 204c377881f6513fdc414cceb395bcdf5ec6eb122bcd0f0f301c22505cced10c
MD5 85091deedc357904b1b96078411d6983
BLAKE2b-256 6ff3425db05465d5c0ecea516a073892cdf3b05c128eae84b64c0a3cb5d8941b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page