示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Random rng  = new Random();
            int    hits = 0;

            foreach (NormalizedDonor d in TestDonors)
            {
                double[] ins = { d.Year, d.OperationYear, d.AxillaryNodes };
                double   rez = nn.Run(new List <double>(ins))[0];
                if (Math.Abs(rez - d.Status) < 0.5)
                {
                    hits++;
                }
            }
            lblTestAcc.Text = String.Format("Paskutinio testo tikslumas: {0:0.00}%", (100.0 * hits) / TestDonors.Count);
            NetworkHelper.ToTreeView(treeView1, nn);
            NetworkHelper.ToPictureBox(pictureBox1, nn, 400, 100);
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            List <double> ins = new List <double>();

            ins.Add(0);
            ins.Add(0);

            nn.Run(ins);

            NetworkHelper.ToTreeView(treeView1, nn);
            NetworkHelper.ToPictureBox(pictureBox1, nn, 400, 100);
        }