Before a neural network ever sees training data, its designer must fix a handful of architecture hyperparameters: how many layers to stack, how wide each layer should be, which activation function fires between them, and how much of the network to randomly silence with dropout. These choices are not learned from data — they define the hypothesis space the network can even represent, and they are usually the first thing tuned during model design.
Unlike weights and biases, architecture hyperparameters are not learned by gradient descent — they are chosen by the designer (or by automated search methods like grid search, Bayesian optimization, or neural architecture search) before training even begins.
A live 3D feed-forward network where changing depth, width, activation function and dropout rate visibly reshapes the model — every neuron and connection is drawn to scale with the current settings.
Architecture hyperparameters — layer count, layer width, activation choice and dropout — define a network's capacity and parameter count before any training happens. The simulation recomputes and redraws the full graph every time a control changes.
Adjust hidden layers, neurons per layer, dropout rate and activation function, then watch the parameter count and active-neuron count update. Toggle the animated forward pass to see a signal propagate layer by layer, skipping neurons dropped out.
Doubling a hidden layer's width roughly doubles the weights connected to it on both sides — parameter count grows much faster with width than with depth in a fixed-width network.