Git Product home page Git Product logo

perceptron_viz's Introduction

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

perceptron_viz's People

Contributors

bhtucker avatar

Watchers

 avatar  avatar

perceptron_viz's Issues

Try Angular

Updating things via jquery when a variable value changes... smells like an Angular opportunity?

Assess separability of current embedding

Using linear discriminant analysis, it should be simple to assess how separable the current feature embedding of the letters is.

It would be nice to show some measure of this, or potentially show the one-dimensional projection of the data points.

This seems appropriate: http://c3js.org/samples/chart_scatter.html

If the domains can be aligned, it would be nice to show the projection under the current perceptron weights as well as that of sklearn off the shelf LDA.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.