public virtual void Test() { TestResult.Clear(); TestExpected.Clear(); int testlength = _TestInput.Length; for (int i = 0; i < testlength; i += 10) { TestResult.Add(Compute(_TestInput[i])); TestExpected.Add(_TestOutput[i]); } CalculateMSE(); }
public override void Test() { TestResult.Clear(); TestExpected.Clear(); int testlength = _TestInput.Length; for (int i = 0; i < testlength; i++) { double[] computed = Compute(_TestInput[i]); //double[] result = new double[] { computed[0], computed[1], _TestInput[i][4] }; double[] result = new double[] { computed[0], _TestInput[i][1] }; TestResult.Add(result); TestExpected.Add(_TestOutput[i]); } }