Git Product home page Git Product logo

algorithm-factory-demo's Introduction

CHUV License Codacy Badge CircleCI

Algorithm Factory DEMO

This project helps you to quickly deploy a complete Mesos stack locally as well as an instance of the Algorithm Factory on top of it. It aims at providing a testing/debugging environment for the integration of new algorithms.

Note that it is not meant at all to be used in production mode.

Pre-requisite

  1. Install a fairly recent version of docker's community edition (official documentation)
  2. Install docker-compose (official documentation)
  3. Configure any firewall to allow the download of images from Docker hub (https://hub.docker.com)
  4. Add your current user to the docker group
  5. Make sure that docker containers can access internet

Sometimes the containers seem not to be able to access internet. It is usually a DNS lookups problem and can be solved by configuring correctly the docker daemon. You can find instructions and tests regarding this issue here Also, you might encounter problems if your machine doesn't have enough available ressources. Finally, this project has only been tested on Ubuntu 16.04.

Installation

  1. Clone the present repository without changing the name of its root directory
  2. Run the script after-git-clone.sh

./after-git-clone.sh

As it has to download a certain number of docker images form docker hub, it may take a little while... Do 30 push-ups...

How to run a local instance of the Algorithm Factory

  1. Execute the script run.sh

./run.sh

On the first run, it has to download a certain number of docker images form docker hub. For that reason it may take a little while... Do 30 push-ups...

This script will launch all the required services specified in the underlying docker-compose config file. It will also ensure that everything is running correctly by executing a few tests

How to integrate your own algorithm

  1. Create a compliant docker image containing your algorithm
  2. Add your an entry for you algorithm in woken/conf/application.conf in the section defaultSettings.request.functions using the following format

YOUR_ALGORITHM_NAME = {

image = "YOUR_DOCKER_IMAGE_NAME:YOUR_DOCKER_IMAGE_TAG"

preditictive = true | false

}

How to create a compliant docker image

General guidelines

Here are the general specifications that any algorithm's docker image should respect in order to be run inside the Algorithm Factory.

The image should be able to:

  • Retrieve tabular data from a feature (SQL) database given a URL and a query string given as environment variables
  • Run an a piece of code (the algorithm) using the retrieved data that produce a tangible output (i.e. statistics, models)
  • Write the output as a PFA document in another (SQL) database whose URL is also given as an environment variable

To be continued

We already provide small frameworks for Java and Python environments. Those are not mandatory, they are only helpers that contributors can choose to use or not.

Java specifics

Coming soon

Python specifics

Coming soon

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.