private void createNetworkToolStripMenuItem_Click(object sender, EventArgs e) { FormCreateNetwork form = new FormCreateNetwork(); form.FormClosed += Form_FormClosed; form.ShowDialog(); }
private void Form_FormClosed(object sender, FormClosedEventArgs e) { FormCreateNetwork form = (FormCreateNetwork)sender; if (form.DialogResult == DialogResult.OK) { nn = new EntityNetwork(features, form.hiddenLayer, form.learningRate); toolStripStatusLabel2.Text = nn._state.name; toolStripStatusLabel4.Text = nn._state._weightInputHidden.GetLength(0).ToString(); toolStripStatusLabel6.Text = nn._state._learningRate.ToString("0.00"); } }