Beispiel #1
0
        private void Load_test_Click(object sender, EventArgs e)
        {
            string pixelFile = openFileDialog4.FileName;
            string labelFile = openFileDialog5.FileName;

            if (pixelFile.Length == 0 || labelFile.Length == 0)
            {
                throw new Exception();
            }
            else
            {
                MnistImage.LoadData(pixelFile, labelFile, out Net.T, out Net.dT);
            }
            Test.Visible = true;
        }
Beispiel #2
0
        private void Load_input_Click(object sender, EventArgs e)
        {
            string pixelFile = openFileDialog1.FileName;
            string labelFile = openFileDialog2.FileName;

            if (pixelFile.Length == 0 || labelFile.Length == 0)
            {
                throw new Exception();
            }
            else
            {
                MnistImage.LoadData(pixelFile, labelFile, out Net.X, out Net.d);
            }
            Net.Y = new double[Int32.Parse(Ylen.Text)];
            Add_layers.Visible   = true;
            Load_weights.Visible = true;
            Confirm.Visible      = true;
        }