Code Monkey home page Code Monkey logo

neataptic's Introduction

Neataptic (unmaintained)

Slack


Neataptic offers flexible neural networks; neurons and synapses can be removed with a single line of code. No fixed architecture is required for neural networks to function at all. This flexibility allows networks to be shaped for your dataset through neuro-evolution, which is done using multiple threads.

// this network learns the XOR gate (through neuro-evolution)
var network = new Network(2,1);

var trainingSet = [
  { input: [0,0], output: [0] },
  { input: [0,1], output: [1] },
  { input: [1,0], output: [1] },
  { input: [1,1], output: [0] }
];

await network.evolve(trainingSet, {
  equal: true,
  error: 0.03
 });

Neataptic also backpropagates more than 5x faster than competitors. Run the tests yourself. This is an example of regular training in Neataptic:

// this network learns the XOR gate (through backpropagation)
var network = new architect.Perceptron(2, 4, 1);

// training set same as in above example
network.train(trainingSet, {
  error: 0.01
});

network.activate([1,1]); // 0.9824...

Use any of the 6 built-in networks with customisable sizes to create a network:

var myNetwork = new architect.LSTM(1, 10, 5, 1);

Or built your own network with pre-built layers:

var input = new Layer.Dense(2);
var hidden1 = new Layer.LSTM(5);
var hidden2 = new Layer.GRU(3);
var output = new Layer.Dense(1);

input.connect(hidden1);
hidden1.connect(hidden2);
hidden2.connect(output);

var myNetwork = architect.Construct([input, hidden1, hidden2, output]);

You can even built your network neuron-by-neuron using nodes and groups!

Visit the wiki to get started
or play around with neural networks

Examples

Neural networks can be used for nearly anything; driving a car, playing a game and even to predict words! At this moment, the website only displays a small amount of examples. If you have an interesting project that you want to share with other users of Neataptic, feel free to create a pull request!

Neuroevolution examples (supervised)
LSTM timeseries (supervised)
Color classification (supervised)
Agar.io-AI (unsupervised)
Target seeking AI (unsupervised)
Snake game AI (unsupervised)
Playground
โ€Œ

Usage

Head over to the wiki for detailed usage. If you want to visualise your graphs, head over to the graph folder.

Install

Neataptic files are hosted by rawgit, just copy this link into the <head> tag:

<script src="https://wagenaartje.github.io/neataptic/cdn/1.4.7/neataptic.js"></script>

Installing with node is also possible:

npm install neataptic

Make sure you have Node.js v7.6 or higher installed!

Further notices

Parts of Synaptic where used to develop Neataptic.

The neuro-evolution algorithm used is the Instinct algorithm.


You made it all the way down! If you appreciate this repo and want to support the development of it, please consider donating ๐Ÿ‘ Donate

neataptic's People

Contributors

agamm avatar alaa-eddine avatar alexistm avatar anubisthejackle avatar bcbcb avatar bobalazek avatar bondifrench avatar cazala avatar coleww avatar cristy94 avatar d-nice avatar eugenioclrc avatar everyonedoteu avatar filet-mign0n avatar germ13 avatar jabher avatar jakeprasad avatar jmussett avatar jzjzjzj avatar lucasbertola avatar menduz avatar mkondel avatar oritwoen avatar qard avatar rwieruch avatar sleepwalking avatar vkaracic avatar wagenaartje avatar yogiben avatar zonetti 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.