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;
}
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;
}
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 ; }
mean squared error, reimplemented for GPU
mean squared error reimplemented for GPU
Returns the error in ms