jax-js
    Preparing search index...

    Function squaredError

    • Calculates squared error for a set of predictions.

      Mean squared error can be computed as squaredError(a, b).mean().

      Parameters

      • predictions: Array
      • Optionaltargets: Array

      Returns Array