Coder Social home page Coder Social logo

auto-pipeline-airflow-mlflow's Introduction

Автоматизаци пайплана ML при помощи Airflow и Mlflow

VENV

python -m venv myyvenv

Порядок действий для первичной установки без postgresql (SQLite)

Mlflow

  1. Создаем папку и виртуальное окружение mkdir airflow-mlflow-tutorial python -m venv myvenv source myvenv/bin/activate

  2. Установка sqlite pip install pysqlite3

  3. Установка

mlflow pip install

mlflow mkdir mlflow

export MLFLOW_REGISTRY_URI=mlflow

Полезная инфа: https://www.mlflow.org/docs/latest/tracking.html#tracking-ui

  1. Запуск сервера: mlflow server --host localhost --port 5000 --backend-store-uri sqlite:///${MLFLOW_REGISTRY_URI}/mlflow.db --default-artifact-root ${MLFLOW_REGISTRY_URI}

  2. Если хотите что то перезапустить и убить процессы

ps -A | grep gunicorn

kill -9 ps aux | grep mlflow | awk '{print $2}'

Airflow

  1. Создаем отдельную директорию mkdir airflow

  2. Установка airflow pip install apache-airflow==2.0.1 --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.0.1/constraints-3.7.txt" export AIRFLOW_HOME=.

  3. Инициализаци БД airflow db init Также в файле конфигурации airflow.cfg прописать: [webserver] rbac = True

а также: load_examples = False

  1. Создание пользователя airflow users create --username miracl6 --firstname miracl6 --lastname miracl6 --role Admin --email @.com

  2. Запуск Airflow

!!перед этим, когда запускаете уже в другой например день:

source "ваш venv" export AIRFLOW_HOME=.

airflow webserver -p 8080

airflow scheduler

  1. Если хотите что то перезапустить и убить процессы

ps -A | grep gunicorn

kill -9 ps aux | grep airflow | awk '{print $2}'

kill -9 ps aux | grep mlflow | awk '{print $2}'

auto-pipeline-airflow-mlflow's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.