Esempio n. 1
0
        static void Main(string[] args)
        {
            //test();

            int[]          layerSizes     = new int[] { 2, 3, 3, 2 };
            double[]       inputValues    = new double[] { 1d, 1d };
            InstanceValues instanceValues = InstanceValues.CreateRandomInstanceValues(layerSizes, inputValues, new Random());

            double[] outputs = Instance.CalculateOutputs(instanceValues);
            Console.WriteLine(outputs[0] + " | " + outputs[1]);

            outputs = Instance.CalculateOutputs(instanceValues.Reproduce(1, 0.2d, new Random()));
            Console.WriteLine(outputs[0] + " | " + outputs[1]);
            Console.ReadKey();
        }