GithubHelp home page GithubHelp logo

microsoft / bonsai-decision-support-interface Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.8K 5.0 197 KB

This repository provides an example of a decision support deployment in python. The deployment interface connects to an exported brain and runs in a web browser.

License: MIT License

Python 100.00%

bonsai-decision-support-interface's Introduction

bonsai decision support deployment

This repository provides an example of a decision support deployment interface to a bonsai brain. The deployment interface connects to an exported brain and runs in a web browser.

  • Supports numbers (float, int, boolean) type states and action only (TODO: extend sample to other types such strings, images)

๐Ÿšฉ Disclaimer: This is not an official Microsoft product. This application is considered an experimental addition to Microsoft Project Bonsai's software toolchain. It's primary goal is to reduce barriers of entry to use Project Bonsai's core Machine Teaching. Pull requests for fixes and small enhancements are welcome, but we do expect this to be replaced by out-of-the-box features of Project Bonsai in the near future.

Pre-requisites

  • Install python packages pip install -r requirements.txt
  • An exported brain running (see preview.bons.ai) and reachable via http requests at <exported-brain-url>. For example below is the docker command for running an exported brain locally, reachable at <exported-brain-url> = http://localhost:<port>
    docker run -d -p <port>:5000 <acr_name>.azurecr.io/<workspace-id>/<brain-name>:1-linux-amd64

Usage

  1. Have an exported brain running and reachable at <exported-brain-url>.
    Note: if no <exported-brain-url> is passed as an argument, the default exported-brain-url will be assume reachable at http://localhost:5000

    streamlit run launch_decision_support.py <exported-brain-url>

    The application will launch http://localhost:8501/ using your default browser. The default port can be overridden by specifying --server.port <port>, e.g. streamlit run launch_decision_support.py --server.port 8420

  2. If you want to stop all running docker containers docker stop $(docker ps -aq)

bonsai-decision-support-interface's People

Contributors

akzaidi avatar enteli avatar jostrow avatar microsoftopensource avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bonsai-decision-support-interface's Issues

missing disclaimer

๐Ÿšฉ Disclaimer: This is not an official Microsoft product. This application is considered an experimental addition to Microsoft Project Bonsai's software toolchain. It's primary goal is to reduce barriers of entry to use Project Bonsai's core Machine Teaching. Pull requests for fixes and small enhancements are welcome, but we do expect this to be replaced by out-of-the-box features of Project Bonsai in the near future.

port:port instructions

Create a port mapping rule like -p ip:hostPort:containerPort. containerPort is required. If no hostPort is specified, Docker will automatically allocate one.

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.