public FormRenameNetwork(EntityNetwork.State state)
        {
            InitializeComponent();

            this.state = state;

            textBox1.Text = state.name;
        }
Exemple #2
0
        private void loadNetworkToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DialogResult res = openFileDialog2.ShowDialog();

            if (res == DialogResult.OK)
            {
                string filename = openFileDialog2.FileName;

                XmlSerializer ser = new XmlSerializer(typeof(EntityNetwork.State));

                using (FileStream fs = new FileStream(filename, FileMode.Open))
                {
                    EntityNetwork.State state = (EntityNetwork.State)ser.Deserialize(fs);

                    nn = new EntityNetwork(state);

                    features = nn._state.features;

                    toolStripStatusLabel2.Text = state.name;
                    toolStripStatusLabel4.Text = state._weightInputHidden.GetLength(0).ToString();
                    toolStripStatusLabel6.Text = state._learningRate.ToString("0.00");
                }
            }
        }