Skip to content

NizeLee/Perceptron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Perceptron

  • Perceptron (html & JavaScript)
  • Perceptron.html

Introduction

  • Single perceptron
  • No activation function
  • Two inputs, two train data, bias input (optional), learning rate
  • Hyperplane is shown

Usage

  • Start: generates two train data (p1 and p2, desired output (d): 1 and -1) with two featrues ranging [0, 1] , and resets weights
  • Step:
    • trains by each train data, alternately
    • updates by w1(t+1) = w1(t) + η(d-y(t))x1(t), where y = w1x1 + w2x2 + b
  • Step(1000): trains 1000 epochs
  • Reset weights: resets weights to random values ranging [-0.5, 0.5]
  • View

About

Perceptron (html)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages