# Suppose your learning algorithm’s cost J, plotted as a function of the number of iterations, looks like this:

Suppose your learning algorithm’s cost J, plotted as a function of the number of iterations, looks like this:

Which of the following do you agree with?

- If you’re using mini-batch gradient descent,
**something is wrong**. But if you’re using batch gradient descent, this looks acceptable. -
**If you’re using mini-batch gradient descent, this looks acceptable. But if you’re using batch gradient descent, something is wrong.**Whether you’re using batch gradient descent or mini-batch gradient descent, something is wrong. - Whether you’re using batch gradient descent or mini-batch gradient descent, this looks acceptable.

**Get All Week Quiz Answer**: