title: How do I connect perceptrons to make a neural network?
body: <p>So, I was following <a href="https://towardsdatascience.com/perceptron-and-its-implementation-in-python-f87d6c7aa428" rel="nofollow noreferrer">this nice tutorial</a> about perceptrons in python. Of course, perceptrons can only work in binary classification problems, but if I join more perceptrons (one per class) then I can have a network where each perceptron identifies if the data belongs to each class.
  My question is, if I have three classes, (1, 2, 3) then I know how to train the two "<em>extremes</em>" (if output is less or equal than 1 / greater or equal than 3), but I can't figure out how to train the "<em>middle</em>" one, other than adding an if with two conditions (greater than 1 and less than 3).
  How is it done?</p>