void GenerateHiddenNeurals() { for (int i = 0; i < 100; i++) { Weight[] NeuralWeightHiddenArr = new Weight[10]; Weight[] NeuralWeightInputArr; NeuralWeightHidden.CopyTo(10 * i, NeuralWeightHiddenArr, 0, 10); if (i == 1) { } NeuralWeightInputArr = InputWeightAsPreviousArr(100, NeuralWeightInput, i); //Console.WriteLine(i); //Console.WriteLine(NeuralWeightInputArr[0].weight+"---input"); HiddenNeurals.Add(new SygmoidNeural(NeuralWeightHiddenArr, NeuralWeightInputArr)); } }
void GenerateWeight() { for (int i = 0; i < 784; i++) { for (int n = 0; n < 100; n++) { NeuralWeightInput.Add(new Weight(RandomNumber(1 / Math.Sqrt(784.0)))); } } Console.WriteLine(NeuralWeightInput[0].weight + "gneral"); for (int i = 0; i < 100; i++) { for (int n = 0; n < 10; n++) { NeuralWeightHidden.Add(new Weight(RandomNumber(1 / Math.Sqrt(100.0)))); } } }