public double CalculateMSE() { if (this.setSize == 0) { return 0; } double err = this.globalError / this.setSize; return err; }