Skip to content

This snippet of code is a showcase on how a Perceptron works.

License

Notifications You must be signed in to change notification settings

Mamdasn/Perceptron-a-Showcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perceptron

This snippet of code is a showcase of how a Perceptron works. In more detail, This program gets N latest inputs of the user, which are 1s and 0s, and feeds them to a Perceptron, which in turn tries to figure out a general pattern in the input sequence. Eventually, After getting enough inputs from the user, the weights stop changing. In that point, if the hit rate frequency is above 50%, it indicates that there is a recognizable pattern in the input sequence, and the Perceptron can successfully discern it.

Usage

Simply type 1s and 0s to insert new inputs into the program:
111011011101101110110111011...

Control Keys:

  • n for reset
  • e for exit
  • 1 for a green input (1)
  • 0 for a red input (-1)

screenshot-of-the-program.jpg

Exploitation

Try your best to exploit the program. See if you can figure these out:

  • find a sequence in which the hit frequency is zero
  • produce a random sequence and try to have a hit frequency of under 50%
  • use a computer generated random sequence as the input and check if the hit frequency is about 50%

About

This snippet of code is a showcase on how a Perceptron works.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages