private void buttonCreateNetwork_Click(object sender, EventArgs e) { String[] layers_string = textLayers.Text.Split(";".ToCharArray()); int[] layers = new int[layers_string.Length]; for (int i = 0; i < layers_string.Length; i++) { layers[i] = int.Parse(layers_string[i]); } if (radioHyperbolic.Checked) { network = NNetwork.HyperbolicNetwork(layers); is_hyperbolic = true; is_sigmoid = false; } if (radioSigmoid.Checked) { network = NNetwork.SigmoidNetwork(layers); is_hyperbolic = false; is_sigmoid = true; } if (radioCombined.Checked) { network = NNetwork.CombinedNetwork(layers); is_hyperbolic = false; is_sigmoid = true; } bool two_steps = network.OutputCount() >= 2; bool three_steps = network.OutputCount() >= 3; checkTrain2.Enabled = two_steps; checkTest2.Enabled = two_steps; checkTrain3.Enabled = three_steps; checkTest3.Enabled = three_steps; groupWeights.Enabled = true; }