示例#1
0
        public void BackPropagateTest()
        {
            BackPropagationThreeLayers target = new BackPropagationThreeLayers(); // TODO: Initialize to an appropriate value

            target.BackPropagate();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
示例#2
0
        public void InitializeNetworkTest()
        {
            BackPropagationThreeLayers target      = new BackPropagationThreeLayers(); // TODO: Initialize to an appropriate value
            List <FaceImage>           trainingSet = null;                             // TODO: Initialize to an appropriate value

            target.InitializeNetwork(trainingSet);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
示例#3
0
        public void BackPropagationThreeLayersConstructorTest1()
        {
            int inputNum        = 0; // TODO: Initialize to an appropriate value
            int firstHiddenNum  = 0; // TODO: Initialize to an appropriate value
            int secondHiddenNum = 0; // TODO: Initialize to an appropriate value
            int outputNum       = 0; // TODO: Initialize to an appropriate value
            BackPropagationThreeLayers target = new BackPropagationThreeLayers(inputNum, firstHiddenNum, secondHiddenNum, outputNum);

            Assert.Inconclusive("TODO: Implement code to verify target");
        }
示例#4
0
        public void GetErrorTest()
        {
            BackPropagationThreeLayers target = new BackPropagationThreeLayers(); // TODO: Initialize to an appropriate value
            double expected = 0F;                                                 // TODO: Initialize to an appropriate value
            double actual;

            actual = target.GetError();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
示例#5
0
        public void ForwardPropagateTest()
        {
            BackPropagationThreeLayers target = new BackPropagationThreeLayers(); // TODO: Initialize to an appropriate value

            double[] pattern = null;                                              // TODO: Initialize to an appropriate value
            string   output  = string.Empty;                                      // TODO: Initialize to an appropriate value

            target.ForwardPropagate(pattern, output);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
示例#6
0
        public void RecognizeTest()
        {
            BackPropagationThreeLayers target = new BackPropagationThreeLayers(); // TODO: Initialize to an appropriate value

            double[] Input                    = null;                             // TODO: Initialize to an appropriate value
            string   MatchedHigh              = string.Empty;                     // TODO: Initialize to an appropriate value
            string   MatchedHighExpected      = string.Empty;                     // TODO: Initialize to an appropriate value
            double   OutputValueHight         = 0F;                               // TODO: Initialize to an appropriate value
            double   OutputValueHightExpected = 0F;                               // TODO: Initialize to an appropriate value
            string   MatchedLow               = string.Empty;                     // TODO: Initialize to an appropriate value
            string   MatchedLowExpected       = string.Empty;                     // TODO: Initialize to an appropriate value
            double   OutputValueLow           = 0F;                               // TODO: Initialize to an appropriate value
            double   OutputValueLowExpected   = 0F;                               // TODO: Initialize to an appropriate value

            target.Recognize(Input, ref MatchedHigh, ref OutputValueHight, ref MatchedLow, ref OutputValueLow);
            Assert.AreEqual(MatchedHighExpected, MatchedHigh);
            Assert.AreEqual(OutputValueHightExpected, OutputValueHight);
            Assert.AreEqual(MatchedLowExpected, MatchedLow);
            Assert.AreEqual(OutputValueLowExpected, OutputValueLow);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
示例#7
0
        public void BackPropagationThreeLayersConstructorTest()
        {
            BackPropagationThreeLayers target = new BackPropagationThreeLayers();

            Assert.Inconclusive("TODO: Implement code to verify target");
        }