• Stars
    star
    184
  • Rank 209,187 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Deep Learning Library Written in ES2015.

js-mind

Deep Learning Library Written in ES2015.

API Documentation

Features

  • Activation functions
    • Sigmoid function
    • Softmax function
    • ReLU function
  • Cost Function
    • Cross Entropy Cost Function
  • Regularization
    • L2 Regularization
    • Dropout

How To Use

var Promise = require('bluebird');

var _ = require('lodash');

var jsmind = require('../dist');

var net = new jsmind.Network([
  new jsmind.layers.ReLULayer(784, 100, {pDropout: 0.5}),
  new jsmind.layers.ReLULayer(100, 100, {pDropout: 0.5}),
  new jsmind.layers.SoftmaxLayer(100, 10, {pDropout: 0.5})
]);

Promise.all([
  jsmind.MnistLoader.loadTrainingDataWrapper(),
  jsmind.MnistLoader.loadValidationDataWrapper()
]).spread(function(trainingData, validationData) {
  net.SGD(
    trainingData,
    60, // epochs
    10, // miniBatchSize
    0.03 // eta
  , {
    validationData: validationData,
    lmbda: 0.1
  });
}).then(function() {
  return jsmind.MnistLoader.loadTestDataWrapper();
}).then(function(testData) {
  var testInput, prediction, accuracy;
  testInput = _.unzip(testData)[0];
  accuracy = net.accuracy(testData);
  prediction = net.predict(testInput);
  console.log('Test accuracy ' + accuracy);
  console.log('Test prediction ' + prediction.toString());
});

More Repositories

1

headless-chrome-crawler

Distributed crawler powered by Headless Chrome
JavaScript
5,393
star
2

ChatIQ

ChatIQ is a versatile Slack bot using GPT & Weaviate-powered long-term memory to accomplish various tasks.
Python
17
star
3

hubot-github-comment-notifier

A GitHub pull request and issue comment notifier for hubot
CoffeeScript
11
star
4

puppet-king-of-time

Have KING OF TIME (www.kingtime.jp) like a puppet on a string
TypeScript
8
star
5

neural-networks-and-deep-learning-js

A JavaScript implementation for "Neural Networks and Deep Learning" by Michael Nielsen
CoffeeScript
6
star
6

native_alert

A Flutter plugin to trigger native alert and confirm dialogs.
Dart
5
star
7

request-notification-permission-demo

CSS
3
star
8

circleci-dynamic-config-example

An example app in Rust for CircleCI's Dynamic Config demo
Rust
3
star
9

website-macro-recorder

Record macros on website
Kotlin
2
star
10

cross-site-tab-change-detection

Demo for cross site tab change detection
TypeScript
2
star
11

socke.io-ie8-loading-example

A sample app to illustrate ie8 loading triggered by socket.io
JavaScript
2
star
12

brain-js-live-demo

Live demo for https://speakerdeck.com/yujiosaka/machine-learning-with-javascript
HTML
2
star
13

WDB109_Puppeteer

WEB+DB PRESS Vol.109 特集「速習Puppeteer──ヘッドレスChromeでテスト&スクレイピング」サンプルコード
JavaScript
2
star
14

socket.io-cache-example

A sample app to illustrate page cache is cleared by socket.io
JavaScript
2
star
15

slack-king-of-time

A bot to automates clocking in and out using KING OF TIME (www.kingtime.jp).
TypeScript
2
star
16

causal-inference-demo-with-gurobi-machine-learning

Causal inference demo with Gurobi Machine Learning
Jupyter Notebook
1
star
17

browserify-jquery-test

A proof of concept that browserify encapsulates jQuery object
JavaScript
1
star
18

circleci-parallelism-option-test

Testing the behavior of CircleCI concurrency option
TypeScript
1
star
19

cross-tab-communication

Demo for cross tab communication
TypeScript
1
star
20

vrp-demo-with-oxmnx-and-ortools

Vehicle Routing Problem (VRP) demo with OSMnx and OR-Tools
Jupyter Notebook
1
star