Code Monkey home page Code Monkey logo

mnist_mlhub's Introduction

Making a model ready for MNIST_mlhub

Starting point for workshop on how to open source an MNIST model with mlhub

mlhub packages ML models so they are easily accessed, run, rebuilt and deployed.

First, to train an MNIST model, run python model.py. The output of this training script is a model checkpoint saved as best.pth.tar and a set of weights metrics_val_best_weights.json.

Given this model checkpoint, can we package the model into a format an end user can get predictions from?

If you don't manage to package the model from the checkpoint, vgg.py contains an example of how to load a pretrained model stored on aws and use the pretrained model to predict the labels of an image.

General mlhub concepts

To make a git project repository mlhub-friendly, simply include a MLHUB.yaml configuration file. To help others understand your model, ideally also include a script to 1. get data eg. dataloader.py and 2. demonstrate what your model does eg. demo.py

A user can then install and run the pre-built model.

  1. $ pip install mlhub
  2. $ ml install MNIST_mlhub
  3. $ ml configure MNIST_mlhub
  4. $ ml demo MNIST_mlhub

mnist_mlhub's People

Contributors

jeannefukumaru avatar

Watchers

James Cloos avatar Graham Williams avatar

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.