code: function mse(errors) {
    var sum = 0;
    for (var i = 0; i < this.constants.size; i++) {
      sum += Math.pow(errors[i], 2);
    }
    return sum / this.constants.size;
  }
docs: mean squared error, reimplemented for GPU