Skip to content

Instantly share code, notes, and snippets.

View danglingfarpointer's full-sized avatar

danglingfarpointer danglingfarpointer

View GitHub Profile
@danglingfarpointer
danglingfarpointer / widrowhoff.js
Last active August 29, 2015 14:06
Sample program of the Widrow-Hoff learning
/*
Sample program of the Widrow-Hoff learning
Copyright (c) 2014 danglingfarpointer
This program is distributed under the MIT License:
http://opensource.org/licenses/mit-license.php
*/
var signs = [
@danglingfarpointer
danglingfarpointer / perceptron.js
Last active August 29, 2015 14:06
Simple 2D perceptron
/*
Simple 2D perceptron
Copyright (c) 2014 danglingfarpointer
This program is distributed under the MIT License:
http://opensource.org/licenses/mit-license.php
*/
var signs = [
@danglingfarpointer
danglingfarpointer / gaknapsack.js
Last active August 29, 2015 14:05
Simple GA for the knapsack problem
/*
Simple GA for the knapsack problem
Copyright (c) 2014 danglingfarpointer
This program is distributed under the MIT License:
http://opensource.org/licenses/mit-license.php
You need to issue `npm install underscore` before running this.
*/