Skip to content
AI & Machine Learning

Neural Network

Definition

A neural network is a computer system inspired by the human brain's structure and function. It's made up of layers of interconnected nodes (neurons) that process and transmit information.

Diagram

A small neural networkFour input nodes connect to every node in a first hidden layer of five, which connects to every node in a second hidden layer of five, which connects to two output nodes. Early layers pick out simple features such as edges; later layers combine them into shapes and then an answer.Inputspixel valuesHidden layer 1edges, strokesHidden layer 2shapesOutputcat or dog
Each line is a weight, a number the network adjusts during training. Training nudges every weight a little, millions of times, until the outputs match the examples. Real networks have millions or billions of weights, which is why they need so much data and computing power.

Worked example