Beispiel #1
0
        public void Run()
        {
            for (int i = 0; i < dataSetList.Count; i++)
            {
                neuralNetwork.InitaliseInput();
                DoInputLayer(i);

                Console.Write(i + ": ");
                foreach (int bit in GetActualClass())
                {
                    Console.Write(bit + " ");
                }
                Console.WriteLine();
                //Network.Print();
            }
        }
Beispiel #2
0
        public NeuralNetwork(NeuralNetwork newNN)
        {
            newNN.InitaliseInput();
            InitialiseNetwork(newNN.InputLayer.Count, newNN.HiddenLayer.Count, newNN.OutputLayer.Count);
            for (int i = 0; i < newNN.InputLayer.Count; i++)
            {
                InputLayer[i] = newNN.InputLayer[i];
            }

            for (int i = 0; i < newNN.HiddenLayer.Count; i++)
            {
                HiddenLayer[i] = newNN.HiddenLayer[i];
            }
        }