18 min total

Machine Learning

Activations & optimization

Activations & optimization

Why do we need activation functions?

Activations and optimization — illustration

If we add a linear activation function, the model maps a linear relationship from input to output features, exactly just like linear regression

Adam optimizer

(Adaptive Moment estimation)

Adjusts learning rate to converge faster

When keeps moving in the same direction, an adaptive optimizer can take larger effective steps.

When updates oscillate, adaptive scaling can reduce the effective step size.

Adam combines moving averages of gradients and squared gradients; it is not guaranteed to converge faster than gradient descent on every problem.