This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This program creates a single neuron neural network tuned to guess | |
if a point is above or below a randomly generated line. | |
The neuron is called Perceptron and has 3 inputs and weights to calculate its output | |
input 1 is the X coordinate of the point | |
Input 2 is the y coordinate of the point | |
Input 3 is the bias and it is always 1 | |
Input 3 or the bias is required for lines that do not cross the origin (0,0) |