aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 15. Introductory Neural Networks
Lesson 4 of 14 9 min · 162 words

Multilayer perceptrons and hidden layers

Stacking layers to learn non-linear functions.

A multilayer perceptron (MLP) stacks layers of neurons: an input layer (the features), one or more hidden layers, and an output layer. In a fully connected (dense) layer, every neuron receives every output of the previous layer.

Each layer computes . Early layers learn simple features; later layers combine them into more abstract ones.

The universal approximation theorem says a network with one hidden layer and enough neurons can approximate any continuous function on a bounded domain as closely as you like. In practice, deeper networks reach the same accuracy with far fewer neurons, because they reuse features hierarchically.

Design choices: number of layers (depth), neurons per layer (width), activation functions, and the output layer — one linear unit for regression, a sigmoid for binary, a softmax for multiclass.

Formula to remember

Layer forward pass

Each layer transforms the previous one.

Quick check · +5 XP

Global average pooling on the 4×4 matrix with values 1 to 16 gives…

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser