Beispiel #1
0
        private void btnScript_Click(object sender, EventArgs e)
        {
            if (cbScript.Text == "Script A")
            {
                MainFolderName = "D:\\Phd\\Shai\\code\\DataScienceAnalysis\\ada_test";

                //USE FORM TO GET FILENAMES
                MngInput = new ManageInputData();
                MngInput.SetAndReadFiles();
                setInputFiles();


                reduceDimantion rdForm = new reduceDimantion(training_dt);
                rdForm.DimCalc();
                rdForm.SetDimSize();
                ReduceDim(rdForm);


                if (training_data_low_dim_dt.Columns.Count < 1)
                {
                    MessageBox.Show("bad input - empty training data");
                }
                else if (training_label_dt.Columns.Count < 1)
                {
                    MessageBox.Show("bad input - empty training labels");
                }
                else
                {
                    DecisionTreeForm decision_tree_form = new DecisionTreeForm(training_data_low_dim_dt, training_label_dt);
                    decision_tree_form.Run();
                }
            }
        }
Beispiel #2
0
 //READ_DATA OF ALL TABLES
 private void read_data(ManageInputData MngInput)
 {
     read_data_into_dt(dataTable_names[0], MngInput.training_data_file_name);
     read_data_into_dt(dataTable_names[1], MngInput.training_label_file_name);
     read_data_into_dt(dataTable_names[2], MngInput.testing_data_file_name);
     read_data_into_dt(dataTable_names[3], MngInput.testing_label_file_name);
 }
Beispiel #3
0
        //GET INPUT FILE NAMES
        private void btnInputFiles_Click(object sender, EventArgs e)
        {
            //USE FORM TO GET FILENAMES
            MngInput  = new ManageInputData();
            dlgResult = MngInput.ShowDialog();

            setInputFiles();
        }
Beispiel #4
0
        private void setInputFiles()
        {
            tmpMngInput = MngInput;

            //USE PROGRESS BAR TO READ_DATA
            ProgressForm form = new ProgressForm();

            form.DoWork += new ProgressForm.DoWorkEventHandler(read_data_DoWork);
            DialogResult result = form.ShowDialog();

            if (MngInput.tabel_are_set == true)
            {
                btnReduceDim.Enabled          = true;
                btnCreateDecisionTree.Enabled = true;
                btnLoadDecisionTree.Enabled   = true;
            }
        }