Introduction to Optax and Optimizers
This lesson will introduce to Optax, a dedicated library for optimization.
Almost whole Machine Learning centers around optimization. For example, we can apply optimization to find the parameters corresponding to the minimization of both
This lesson will review the basic theory and syntax of Optax. This information will be consolidated in the next lesson with a review of some advanced functions and a working example.
Common loss functions
Before we begin, take a look at the subtle difference between loss and error functions: namely, a loss function is defined over the individual samples while an error function is defined over a whole batch or dataset.
Now we’ll review some common loss functions.
L2 loss simply takes the norm (or Euclidean) distance between the intended and original outputs.
...