LearnThatStack Ace your next interview
Deep Learning & Neural Networks · question
Question 7 of 48

Which hyperparameters do you tune when training a neural network, and what does each control?

beginner
← All Deep Learning & Neural Networks questions
Re-explain

Hyperparameters are the knobs you set before training starts, as opposed to weights, which the training learns. A handful matter far more than the rest.

  • Learning rate: the size of each weight update, and by far the most sensitive.
  • Batch size: examples per update, which also drives memory use and throughput.
  • Epochs: how many passes over the data, usually settled by early stopping.
  • Depth and width: layers and units per layer, which set the model's capacity.
  • Regularization strength: dropout probability and weight decay, trading fit against generalization.
  • Optimizer: plain descent, momentum or Adam, each with its own sensible defaults.

Tune them roughly in that order. Sweeping everything at once wastes compute, because learning rate alone can swamp the effect of every other choice.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

The diagram below the answer is the concept . Jump to it ↓

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

Saved in this browser - sign in to keep your review list.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Interview lens

Likely follow-ups, what you can say, and the weak answers to avoid.

Sign in free to open it Free account - the lens opens as soon as you're back.

Want a quick review of the fundamentals? See the Deep Learning & Neural Networks cheatsheet.

← Back to all Deep Learning & Neural Networks questions
Pro · $10/mo

41 of 48 Deep Learning & Neural Networks answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime