Skip to content

The simplest neural network in existence (2 lines of code with no 3rd-party dependencies)

License

Notifications You must be signed in to change notification settings

proof-of-reality/Purple-rAIn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Purple rAIn

The simplest neural network in existence (2 lines of code with no 3-party dependency)

What it does? Classifies if the given RGB input resolves to purple or orange (approximately)

Run:

> python .\purple_rain.py "150,100,150"
> purple

Graph of the neural network with 2 layers: purple rain


but wait... image

yes, they are.

The neural network encodes multiple choices into a single matrix (your model) whereby each node is an if condition and each weight defines the likelihood to activate the if condition (neuron) for any given input.

PS: of course this is a very poor AI with very low accuracy. It can only categorize 2 colors and the weights were defined at my own taste (they barely matter).

DO NOT USE IN PRODUCTION

About

The simplest neural network in existence (2 lines of code with no 3rd-party dependencies)

Topics

Resources

License

Stars

Watchers

Forks

Languages