Build a custom neural network with any architecture in JavaScript and train it in the browser without any Python or server setup.
Use the built-in LSTM template to train a network that learns from sequences, like predicting the next word in text.
Run the included XOR training example as a sanity check that your network wiring and training loop are set up correctly.
Embed a trained neural network in a web page to classify user input or apply learned image filters client-side.
Synaptic is a JavaScript library for building and training neural networks, usable both in a browser and in Node.js. A neural network is a type of software that learns patterns from examples rather than following explicit programmed rules. Synaptic lets developers create these networks by connecting together layers of artificial neurons, then training the result on data until it can recognize patterns or make predictions. The library is described as architecture-free, meaning it does not lock you into a specific network shape. You can wire neurons and layers together however you choose, building standard designs like a multilayer perceptron (a basic feedforward network) or more complex recurrent designs that can retain memory across a sequence of inputs. For common architectures, the library includes ready-made templates so you do not need to build from scratch: multilayer perceptrons, LSTM (long short-term memory) networks for sequence learning, liquid state machines, and Hopfield networks are all available. Training is handled by a built-in Trainer class. The library includes several standard test tasks, such as learning the XOR logic operation (a classic first test for neural networks), a sequence recall task, and an Embedded Reber Grammar test, which lets you measure and compare how well different network designs learn. The underlying training algorithm is based on a published academic paper on generalized training for second-order recurrent networks. The README links to interactive browser demos, including a version that learns to apply image filters, a self-organizing map, and a network that reads from Wikipedia. Installation is through npm for Node.js or a CDN script tag for browser use. The project began in Buenos Aires, Argentina, and accepts code contributions. A discussion of a major version 2 rewrite was open in the repository at the time the README was written.
← cazala on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.