npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@krwhitley/neataptic

v1.6.0

Published

Thomas Wagenaar's Neataptic, copied for modern DX improvements.

Downloads

118

Readme

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!

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!

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.5.1/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 :thumbsup: Donate