Code Monkey home page Code Monkey logo

mlcomops's Introduction

MLOps

Voraussetzungen

Einrichtung

Nach dem Checkout zunächst die conda Umgebung erstellen und aktivieren:

git clone https://github.com/datanizing/datascienceday.git
cd datascienceday
cd 08_MLOps
conda env create -f environment.yml
conda activate mlops

Unter Linux Systemen die Berechtigungen für die gemounteten Volumes anpassen:

chmod -R o+w docker-compose/

Damit nun die DVC Dateien getrackt werden, den untersten markierten Abschnitt der [.gitignore] auskommentieren.

Benötigten Komponenten bereitstellen

docker-compose build
docker-compose up

In Minio ein Bucket titanic anlegen.

DVC initialisieren

dvc init
dvc remote add -d minio s3://titanic/dvcrepo
dvc remote modify minio endpointurl http://localhost:9000
dvc remote modify --local minio access_key_id minio-access-key
dvc remote modify --local minio secret_access_key minio-secret-key

Datensatz

Titanic Datensatz von OpenML

Daten laden als dvc Stage anlegen und ausführen:

dvc run -n load_data --force -o ../data/interim/train_df.pkl -o ../data/interim/test_df.pkl -o ../data/interim/outlier_df.pkl -d load_data.pct.py -w notebooks python load_data.pct.py

Starten der API:

python app.py

API erzeugen

Während die Model API läuft, folgendes ausführen:

openapi-python-client generate --url http://127.0.0.1:8080/openapi.json

Setup aus Prometheus, Grafana und Model API starten

Voraussetzung:

docker-compose build
docker-compose -f docker-compose.yml -f docker-compose.modelapi.yml up

API: http://localhost:8080/docs

Monitoring

Dashboard Inspired by Jeremy Jordan A simple solution for monitoring ML systems.

Referenzen:

mlcomops's People

Contributors

mbunse avatar

Watchers

James Cloos avatar

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.