Giter Club home page Giter Club logo

lume-model-server-demo's Introduction

Jupyter notebook demo of lume-model and lume-epics

Binder

This repository contains demo notebooks for serving online models using the lume-model and lume-epics. A simple demo is included outlining an implementation of a minimal model using the tools, as well as an example of an more complicated surrogate model.

A conda installation is required for setting up the required packages and the code is executed inside jupyter notebooks.

Clone the demo repository

$ git clone https://github.com/jacquelinegarrahan/lume-model-server-demo.git

Navigate to the demo repository

$ cd lume-model-server-demo

Set up and activate conda environment

Create the environment using conda and the environment.yml file included with the repository:

$ conda env create -f local-environment.yml

Activate the environment:

$ conda activate lume-model-server-demo

Set up the ipython kernel

$ python -m ipykernel install --user --name=lume-model-server-demo

Launch Jupyter

$ jupyter notebook

Run simple demo

In two tabs, open the SimpleServer and SimpleClient notebooks. Begin by following the code outlined in the SimpleServer notebook, and then execute the code in the SimpleClient to render the application. Finally, terminate the server using the Server.stop() method in the SimpleServer notebook.

Run surrogate model demo

The surrogate model demo uses the MyModel python class defined in the MySurrogateModel.py. The MyModel class uses a custom implementation to load a Keras model in init and executes the model in the evaluate method. The model is loaded using an hdf5 file containing the model weights and architecture.

In two tabs, open the SurrogateModelServer and SurrogateModelClient notebooks. Begin by following the code outlined in the SurrogateModelServer notebook, and then execute the code in the SurrogateModelClient to render the application. Finally, terminate the server using the Server.stop() method in the SurrogateModelServer notebook.

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.