コード例 #1
0
        public void BackPropagateTest()
        {
            BackPropagationTwoLayers target = new BackPropagationTwoLayers(); // 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()
        {
            BackPropagationTwoLayers target      = new BackPropagationTwoLayers(); // 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 BackPropagationTwoLayersConstructorTest1()
        {
            int inputNum       = 0; // TODO: Initialize to an appropriate value
            int firstHiddenNum = 0; // TODO: Initialize to an appropriate value
            int outputNum      = 0; // TODO: Initialize to an appropriate value
            BackPropagationTwoLayers target = new BackPropagationTwoLayers(inputNum, firstHiddenNum, outputNum);

            Assert.Inconclusive("TODO: Implement code to verify target");
        }
コード例 #4
0
        public void GetErrorTest()
        {
            BackPropagationTwoLayers target = new BackPropagationTwoLayers(); // 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()
        {
            BackPropagationTwoLayers target = new BackPropagationTwoLayers(); // 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()
        {
            BackPropagationTwoLayers target = new BackPropagationTwoLayers(); // 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 BackPropagationTwoLayersConstructorTest()
        {
            BackPropagationTwoLayers target = new BackPropagationTwoLayers();

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