0.1.4 • Published 8 years ago
mind.js v0.1.4
mind.js
Artificial Neural Network Library Written in Javascript
install
- For terminal:
First install the package mind.js.
npm install mind.js
Then 'require' the module.
var MindJS = require('mind.js');
- For browser:
First link the underscore library
<script src="/third-party/underscore.js"></script>
Then link the mind.js library
<script src="/mind.js"></script>
Now you can access the functionality of mind.js through the global variable
MindJS
usage
- Perceptron
var perceptron = new MindJS.Perceptron();
var xs = [[0, 0], [0, 1], [1, 0], [2, 1], [3, 3]], ys = [1, 1, 2, 2, 3];
perceptron.train(xs, ys);
var predicted = perceptron.predict(xs); // [1, 1, 2, 2, 3];
links
For more information on mind.js usage, please visit mind.js github page http://yangyanzhan.github.io/.
For more information on Artificial Intelligence, please visit my personal blog http://www.yangyanzhan.com.