Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including browsernn with all npm packages installed. Try it out:

var browsernn = require("browsernn")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

browsernn v1.0.1

Javascript library for training neural networks in your browser

browserNN.js

browserNN is an easy to use javascript library that allows you to train deep neural networks in your own browser.

For full documentation and a demo, please see: https://carbonati.github.io/posts/browsernn/

Example

model = new browsernn.Model();

layers = []; 

layers.push({type: 'input', n: 1, d: 2, depth: 1}); 
layers.push({type: 'dense', n_neurons: 8, activation: 'relu'}); 
layers.push({type: 'dense', n_neurons: 4, activation: 'tanh'}); 
layers.push({type: 'softmax', n_classes: 2}); 

params = {optimizer: 'sgd', 
        learning_rate: .01, 
        momentum: 0.01, 
        batch_size: 10, 
        l2_decay: 0.01};
        
trainer = new browsernn.Trainer(model, layers, params); 

Use in Node

  1. install: npm install browsernn
  2. Use: var browsernn = require("browsernn");

License

MIT

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free