Ejemplo n.º 1
0
        private void btnRegression_Click(object sender, EventArgs e)
        {
            indexing inx = new indexing(@"C:\Users\Alaattin\Source\Repos\IronicSA\IronicSA\IronicSA\data\tweetdata.txt");
            inx.IndexingData();

            /*
            string dataset = inx.getMatrixesFull();
            string results = dataset.Replace("dataset", "results");
            TrainAndTest(dataset, dataset, results);
            */

            string datafolder = inx.getMatrixes(5,chClassification.Checked);
            double total = 0;
            for (int i = 0; i < 5; i++)
            {
                total += TrainAndTestFold(datafolder, i);
            }
            MessageBox.Show((total/5).ToString());
        }
Ejemplo n.º 2
0
        private void btnRegression_Click(object sender, EventArgs e)
        {
            indexing inx = new indexing(@"C:\Users\Alaattin\Source\Repos\IronicSA\IronicSA\IronicSA\data\tweetdata.txt");

            inx.IndexingData();

            /*
             * string dataset = inx.getMatrixesFull();
             * string results = dataset.Replace("dataset", "results");
             * TrainAndTest(dataset, dataset, results);
             */

            string datafolder = inx.getMatrixes(5, chClassification.Checked);
            double total      = 0;

            for (int i = 0; i < 5; i++)
            {
                total += TrainAndTestFold(datafolder, i);
            }
            MessageBox.Show((total / 5).ToString());
        }