One ternary neuron

You will learn

How a neuron with weights -1, 0, +1 computes without multiplying.

A neuron multiplies each input by a weight, adds the products and compares the sum with a threshold. With ternary weights every product is a copy, a zero or a flip, so the sum is adds and subtracts only. The spec's activate() answers +1 at or above the threshold, -1 at or below minus it and 0 between: a neuron that can say not sure.

Open the interactive lesson →