Skip to content
Teach a perceptron which letters are vowels with numpy/flask
JavaScript Python HTML CSS Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
viz
voweler
.gitignore
LICENSE
install_and_serve.sh
perceptron_state.png
readme.md
requirements.txt
setup.py
weights.png
wsgi.py

readme.md

Perceptron Learning

A perceptron is the simplest form of 'neural network' learning.

The 'neuron' is simply a vector that can be multiplied against data points to say 1 or 0.

This perceptron tries to learn which letters are vowels, ie, we draw 26 points in space and say some are one class and the rest are another.

Visualization App

You can:

  • select what letter (or groups of letters) to feed to the perceptron next
  • watch it's learning pattern (initially, moving left after consonants, right after vowels)
  • see the weight vector at bottom of page
  • see the current accuracy as compared to a benchmark accuracy from a linear algebra class separation solution (LDA)
  • adjust the dimensionality

To run

Requires numpy/scipy (if you need these look up anaconda distribution)

Install python dependencies with

pip install .

from base directory.

Build JS app from viz directory

npm install
npm run build

After building, /voweler/dist/ should exist

Run python wsgi.py to run app simply.

Cross-request state persistence is available via shared memory managed by uwsgi: see the multiapp branch

You can’t perform that action at this time.