Esempio n. 1
0
        //dodałem TOMEK
        public static void TestLoad(RadialNetwork rn)
        {
            Console.Out.WriteLine();

            RadialNeuron.TestLoad((RadialNeuron)rn.neuronOutputLayer[0]);
            Console.Out.WriteLine(rn.outputLayerNeutonWeights[0][0]);
            Console.Out.WriteLine(rn.outputData[0][0]);
            Console.Out.WriteLine(rn.neuronHiddenLayer.Count);
            Console.Out.WriteLine(rn.neuronOutputLayer.Count);
            //Console.Out.WriteLine(rn.greenMatrix[0, 0]);
        }
Esempio n. 2
0
        //druga proba
        //private double[] NetworkOutputVector(double[] vector)
        //{
        //    return Matrix.Multiply(this.CreateGreenMatrix(), vector);
        //}



        #endregion

        //dodałem TOMEK
        public static RadialNetwork TestSave()
        {
            RadialNetwork rn = new RadialNetwork();

            rn.outputLayerNeutonWeights.Add(new double[] { 1.0 });
            rn.outputData = new List <double[]>();
            rn.outputData.Add(new double[] { 1.0 });
            //rn.greenMatrix = new double[1, 1];
            //rn.greenMatrix[0, 0] = 2;


            rn.neuronOutputLayer[0] = (INeuron)RadialNeuron.TestSave();
            Console.Out.WriteLine(rn.outputLayerNeutonWeights[0][0]);
            Console.Out.WriteLine(rn.outputData[0][0]);
            Console.Out.WriteLine(rn.neuronHiddenLayer.Count);
            Console.Out.WriteLine(rn.neuronOutputLayer.Count);
            //Console.Out.WriteLine(rn.greenMatrix[0, 0]);

            return(rn);
        }