GithubHelp home page GithubHelp logo

caraml-dev / xp Goto Github PK

View Code? Open in Web Editor NEW
15.0 5.0 8.0 6.86 MB

ML Experimentation Platform

License: Apache License 2.0

Dockerfile 0.18% Makefile 0.67% Go 71.62% Shell 0.30% Python 2.92% JavaScript 24.03% HTML 0.12% SCSS 0.14%
data-science experimentation-platform machine-learning ml-experiments mlops golang

xp's Introduction

xp

License

Overview

XP helps with designing and managing experiment configurations in a safe and holistic manner. At runtime, these configurations can be used to run experiments and generate treatments.

The API is broken down into 2 services:

  • Management Service: Used to configure experiments
  • Treatment Service: Used to obtain the treatment configuration from active experiments

Architecture

The following diagram summarizes the interaction between the various components of the system. The Management service is packaged together with the UI, while the Treatment service is published separately - this is so that the Treatment service, which is lightweight, can be deployed and made to scale independently.

XP Architecture

Why XP?

  • Reliable - Inherent fault-detection rules help create experiments without conflicts.
  • Customizable - Every service has unique requirements. XP allows for defining flexible segmentation and experiment validation rules.
  • Fast - 99p server-side latency (excluding the network latency between the calling service and XP) averages around 1 ms.
  • Observable - Resource utilization, treatment assignment and performance metrics are available on Prometheus

Development Environment

Quick Start

a. Setup MLP API

Instructions as described in README of https://github.com/caraml-dev/mlp.

b. Starting XP

Prior to starting XP, we'll need to ensure correct MLP API is correctly set in the config file, i.e management-service/config/example.yaml, and setting the correct MLPConfig_URL value.

# Start Management Service
make mgmt-svc

# Start Treatment Service
make treatment-svc

# Exploring Swagger-UI
make swagger-ui

make mgmt-svc runs the following:

  1. make local-db
    • Setup a local DB for storing experiment configurations
  2. make local-authz-server

To test authorization for Management Service locally, make the following changes before starting Management Service:

  • A sample policy exists at keto/policies/example_policy.json. It can be modified.
  • Set AuthorizationConfig.Enabled=true in the config file that's being used
  • Issue requests to the app with the header User-Email: [email protected]

c. Using XP

To use the XP Go modules as API dependencies, simply import the XP Go modules directly i.e. import "github.com/caraml-dev/xp/..."

d. XP Helm installation

For running a helm installation of XP, you may refer to the xp-management and xp-treatment charts.

Contributing

XP is still under active development. Please have a look at our contributing and development guides if you want to contribute to the project:

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.