Machine Learning Basics

A model is trained on 10,000 training samples with a mini-batch size (batch size) of 50. How many weight updates are there in one epoch?

  1. A50
  2. B200
  3. C2000
Show answer and explanation

Answer: B. 200

An epoch is the unit of training in which the entire training set has been used once. In mini-batch training, the gradient is computed for each mini-batch and the weights are updated once, so the number of updates per epoch (the number of iterations) is 10000 ÷ 50 = 200. Training for 10 epochs makes 2000 updates in total. Mini-batch training lies between batch training, which updates once using all the data, and online training, which updates after every single sample.

  • A. This is the batch size, the number of samples used in one update.
  • B. Correct. 10000 ÷ 50 = 200.
  • C. This is the total number of updates after 10 epochs of training.
Practice this topic Back to topic

Related calculators

Books on Machine Learning Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Machine Learning Basics questions

  1. How many trainable parameters does a fully connected layer with 64 inputs and 32 outputs (one bias per output) have?
  2. A 28×28 single-channel image is convolved with a 5×5 filter (stride 1, no padding), followed by 2×2 max pooling (stride 2). What are the height and width of the output?
  3. Which of the following correctly describes recurrent neural networks (RNNs) and LSTMs?
  4. Which of the following describes the self-attention used in the Transformer?
  5. Which of the following describes transfer learning, in which a model trained on a large amount of data is used for a different task with little data?