Skip to main content

MLOps course MISIS University

Project description

mlops_misis

roman-shinkarenko-17 MLOps MISIS Course

Запуск 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.1.tar.gz (5.9 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.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlops_misis-0.0.1.tar.gz
  • Upload date:
  • Size: 5.9 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.1.tar.gz
Algorithm Hash digest
SHA256 4060b2ef77962e1f2ec700f55f440220ff5b28fb4cd607ba3dc97f75445f2f38
MD5 4aba06d174af2d5ebb401f0399d582ad
BLAKE2b-256 2fd5995582e58cc63afa484088d0eb4bc62b5254a2997a7ae0d782a121c549ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlops_misis-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa933da8aabad91ddf46cd52d4ba9dc99e84b46d09cff204ef28a768bcff210c
MD5 4cf865ef569fd70b91850977deb8eda0
BLAKE2b-256 7cbe3240df55a55c000f678a7a267e185fed4c1e14d1b7fde7ef531b84017e38

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