Exemplo n.º 1
0
        private void init_NN_Centroids()
        {
            int count = 0;

            for (int i = 0; i < num; i++)
            {
                if (count == 14)
                {
                    count = 0;
                }
                neoron n = new neoron();
                n.Centroid = featers[count];
                count++;
                Neo.Add(n);
            }

            for (int j = 0; j < Num_classes; j++)
            {
                Output op = new Output();
                outputs.Add(op);
            }

            for (int x = 0; x < Weight.Length; x++)
            {
                Random rand = new Random();
                Weight[x] = rand.Next(1, 100);
            }
        }