Exemplo n.º 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();
                }
            }
        }
Exemplo n.º 2
0
 public void CreateDecisionTree()
 {
     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.ShowDialog();
     }
 }