Momentum Optimiser Calculator

Explore momentum optimisation step by step, compare algorithms, test schedules, analyse convergence, visualise updates, and export accurate machine learning results with confidence every time.

Core optimiser settings

Use commas for vectors, such as 1.2, -0.5.

Gradient generator and input

Use one step per line. Separate vector components with commas.

Learning-rate schedule

Momentum, regularisation, and clipping

Comparison settings

Formula used

Classical momentum:
vₜ = βvₜ₋₁ + (1 − d)gₜ
θₜ = θₜ₋₁ − ηvₜ

Symbols may follow different framework conventions. Review each selected formula carefully.

How to use

  1. Enter scalar parameters or comma-separated vectors.
  2. Select a gradient source and optimiser mode.
  3. Configure schedules, clipping, and regularisation.
  4. Run the calculation and review every update.
  5. Export, print, copy, or save your results.

Worked example data

InputExamplePurpose
Initial parameter1.000000Starting model weight
Gradient sequence0.50, 0.40, 0.25Loss derivatives by step
Learning rate0.010000Controls each update size
Momentum0.900000Retains previous update direction
Initial velocity0.000000Starts the momentum buffer

Momentum optimiser guidance

Why momentum helps

Momentum accumulates gradients moving consistently. It can accelerate progress along shallow directions.

Oscillation control

Repeated opposing gradients reduce stored velocity. This can stabilise movement across narrow valleys.

Overshooting risk

Large learning rates and momentum amplify updates. Reduce either value when divergence appears.

Nesterov behaviour

Nesterov applies a look-ahead correction. Supplied gradients should represent that anticipated position.

Frequently asked questions

What does the momentum coefficient control?

It controls how strongly previous velocity influences new updates.

Why is 0.9 commonly used?

It often balances acceleration and stability across many training tasks.

Can momentum exceed one?

Values near or above one can create unstable growing updates.

What is the velocity buffer?

It stores accumulated gradient direction from earlier optimisation steps.

How does dampening change momentum?

Dampening reduces each new gradient contribution entering the buffer.

When should gradients be clipped?

Clip gradients when occasional large values create unstable updates.

What does decoupled weight decay do?

It shrinks parameters separately from the optimiser gradient calculation.

Why compare several learning rates?

The comparison reveals sensitivity, overshooting, and slow convergence risks.

Does this replace framework training?

No. It provides educational simulation and update verification only.

Can vectors have several parameters?

Yes. Every vector must use matching component dimensions.

Related Calculators

Gradient Descent CalculatorStochastic Gradient Descent CalculatorAdam Optimiser CalculatorLearning Rate Decay CalculatorK-Nearest Neighbours CalculatorKNN Majority Vote CalculatorQ-Learning Update CalculatorMulti-Armed Bandit CalculatorModel Calibration CalculatorBrier Score Calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.