Neural Network P5

Alternatives To Neural Network P5
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
D2l Zh48,2731113 days ago47December 15, 202248apache-2.0Python
《动手学深度学习》:面向中文读者、能运行、可讨论。中英文版被70多个国家的500多所大学用于教学。
Machine Learning For Software Engineers26,824
5 months ago24cc-by-sa-4.0
A complete daily plan for studying to become a machine learning engineer.
Pumpkin Book21,812
2 months ago16other
《机器学习》(西瓜书)公式详解
Fastbook19,230111 days ago27October 24, 2022133otherJupyter Notebook
The fastai book, published as Jupyter Notebooks
D2l En18,967
a month ago2November 13, 202295otherPython
Interactive deep learning book with multi-framework code, math, and discussions. Adopted at 500 universities from 70 countries including Stanford, MIT, Harvard, and Cambridge.
Awesome Kubernetes14,249
12 days ago7otherShell
A curated list for awesome kubernetes sources :ship::tada:
Deep Learning With Tensorflow Book11,864
2 years ago78Jupyter Notebook
深度学习入门开源书,基于TensorFlow 2.0案例实战。Open source Deep Learning book, based on TensorFlow 2.0 framework.
Python Machine Learning Book11,645
a year ago11mitJupyter Notebook
The "Python Machine Learning (1st edition)" book code repository and info resource
Mit Deep Learning Book Pdf10,775
9 months ago10Java
MIT Deep Learning Book in PDF format (complete and parts) by Ian Goodfellow, Yoshua Bengio and Aaron Courville
Mml Book.github.io10,729
7 months ago135Jupyter Notebook
Companion webpage to the book "Mathematics For Machine Learning"
Alternatives To Neural Network P5
Select To Compare


Alternative Project Comparisons
Readme

Deprecated!

Simple Artificial Neural Network JavaScript library

This repository is a library for creating simple vanilla 3-layer ANNs in JavaScript. I'm using it for the second edition of the Nature of Code book, as well as examples for my ITP course: Intelligence and Learning.

At the moment this library is depends on p5.js. However, it's my intention to remove this dependency for the library itself (while still making examples using p5): #10. I also intend to port this library to Java for Processing: #11.

Finally, this library has a terribly inefficient matrix implementation and should likely include options for using math.js and/or gpu.js.

The code is based on the book Make Your Own Neural Network by Tariq Rashid (book source code).

Example Demos

The neuro-evolution examples are inspired by the chrome experiment Flappy Learning by xviniette.

Use

// Creating a Neural Network with # of inputs, hidden neurons, and outputs
var inputs = 4;
var hidden = 16;
var outputs = 2;
var nn = new NeuralNetwork(inputs, hidden, outputs);

// Training the Neural Network with inputs and known outputs
var inputs = [-0.3, 0.5, 0.3, 0.2];
var targets = [0.99, 0.01];
nn.train(inputs, targets);

// Querying the Neural Network with inputs
var inputs = [-0.3, 0.5, 0.3, 0.2];
var prediction = nn.query(inputs);

By default, the library will use a sigmoid activation function. However, you can select other activation functions as follows (tanh only at the moment)):

var nn = new NeuralNetwork(inputs, hidden, outputs, 'sigmoid');
var nn = new NeuralNetwork(inputs, hidden, outputs, 'tanh');
Popular Machine Learning Projects
Popular Book Projects
Popular Machine Learning Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Machine Learning
Book
Neural Network
Neural
Genetic Algorithm
P5js
Neuroevolution