Giter Site home page Giter Site logo

jellehak / yellowmind Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 20.63 MB

YellowMind is a machine learning library for running Convolutional Neural Network (CNN) in the browser or NodeJs.

Home Page: https://jellehak.github.io/yellowmind

JavaScript 96.07% HTML 3.93%

yellowmind's Introduction

YellowMind

YellowMind is a machine learning library for running Convolutional Neural Network (CNN) in the browser or NodeJs.

Goal

Make training and running of Convolutional Neural Network (CNN) as easy as possible.

Big thanks

  • Most of the underlaying library is based on the great work of DenseInL2 https://github.com/DenseInL2/webcnn. This library has been extended to allow creating machine learning networks purely from JSON.

Roadmap

  • Convert WebCNN ( from DenseInL2 ) to use JSON.
  • Documentation + example(s)
  • Browers support
  • NodeJS support
  • CLI
  • WebGl Support
  • Handle streaming data
  • Combine and link networks

Installation

TODO

How it works

Input

The input data consist of training data and a network topology.

Training data

Define your training data like:

[
  {  
    "type":"imagemap",
    "labels": {
      "url":"/datasets/mnist/images/labels_0.json"
    },
    "width": 2800,
    "height": 2800,
    "single": {
      "width":28,
      "height":28
    },
    "path":"/datasets/mnist/images/mnist_training_0.png"
  },
  {  
    "type":"imagemap",
    "labels": {
      "url":"/datasets/mnist/images/labels_1.json"
    },
    "width": 2800,
    "height": 2800,
    "single": {
      "width":28,
      "height":28
    },
    "path":"/datasets/mnist/images/mnist_training_1.png"
  }
]

Types

Current supported types:

  • imagemap
  • image

Image

{  
  "type":"image",
  "width": 2800,
  "height": 2800,
  "path":"/datasets/mnist/images/mnist_training_1.png"
}

Imagemap

{  
  "type":"imagemap",
  "width": 2800,
  "height": 2800,
  "single": {
    "width":28,
    "height":28
  },
  "path":"/datasets/mnist/images/mnist_training_1.png"
}

Network

Define your network:

[
  { name: 'image', type: 'inputImageLayer', width: 24, height: 24, depth: 1 },
  { name: 'conv1', type: 'convLayer', units: 10, kernelWidth: 5, kernelHeight: 5, strideX: 1, strideY: 1, padding: false },
  { name: 'pool1', type: 'maxPoolLayer', poolWidth: 2, poolHeight: 2, strideX: 2, strideY: 2 },
  { name: 'conv2', type: 'convLayer', units: 20, kernelWidth: 5, kernelHeight: 5, strideX: 1, strideY: 1, padding: false },
  { name: 'pool2', type: 'maxPoolLayer', poolWidth: 2, poolHeight: 2, strideX: 2, strideY: 2 },
  { name: 'out', type: 'FCLayer', units: 10, activation: 'softmax' }
]

The complete machine learning definition:

{
  "version": "0.0.1",
  "author": "Your team",
  "training": [
    // ... your training data
  ],
  "network": [
    // ... your network
  ],
}

Training

Output

Examples

Simple example of learning MNIST. open in new window

yellowmind's People

Contributors

jellehak avatar

Watchers

 avatar  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.