jax-js
    Preparing search index...

    Function l2Loss

    • Calculates the L2 loss for a set of predictions.

      This is equivalent to 0.5 * squared error, where the constant is standard from "Pattern Recognition and Machine Learning" by Bishop.

      Parameters

      • predictions: Array
      • Optionaltargets: Array

      Returns Array