예제 #1
0
        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();
        }
예제 #2
0
        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]);
            }
        }