Giter VIP home page Giter VIP logo

go-bandit-server's Introduction

go-bandit-server

A server running multi-armed-bandit algorithm. A redis server is required to implement caching and delayed learning.

graph

User Stories

Features

Get Arm

  • As a consumer application,
  • I want to know which feature to display,
  • In order to display that feature.

Update Arm

  • As an analytic guy,
  • I want to get the feedback on the feature displayed,
  • In order to improve the feature selection mechanism.

View Stats

  • As an analytic guy,
  • I want to view the current stats,
  • In order to know how the features perform.

Endpoints

Get Arm

$ curl http://localhost:9090/arms

Output:

{
  "arm":2,
  "id":"bcbl5jle4b3ipsuela90",
  "created_at":"2018-06-06T03:19:42.336425107Z",
  "updated_at":"2018-06-06T03:19:42.33642513Z"
}

Post Arm

$ curl -X POST -d {"arm": 2, "id":"bcbl5jle4b3ipsuela90", "reward": 1} http://localhost:9090/arms

Output:

{"ok": true}

Get Arm Stats

$ curl http://localhost:9090/arms/stats

Output:

{
  "counts":[0,0,1],
  "rewards":[0,0,1],
  "experiment_name":"colors",
  "features":["red","green","blue"]
}

TODO

  • dockerize the service
  • create a dashboard for the service (web ui)
  • make the service configurable
  • make the results of the service transparent (like feature X is n% better than feature Y)
  • isolate configuration
  • add labels and annotations for registry
  • create sdk to integrate the functionality into other applications
  • or make this into a sidecar proxy
  • CRUD and API interface and CLI to integrate with the configuration
  • fix the race issue that is found in the api
  • load data from persistent store (e.g. redis)
  • note that features might not be loaded in the correct order, hence it is important not to hardcode the values. use namespace instead

go-bandit-server's People

Contributors

alextanhongpin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

frutik sdotz kiminh

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.