Пример #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();
                }
            }
        }
Пример #2
0
        //REDUCE DIMANTION
        private void btnReduceDim_Click(object sender, EventArgs e)
        {
            //USE FOR (REDUCEDIMANTION) TOREDUCE DIM
            reduceDimantion rdForm = new reduceDimantion(training_dt);

            rdForm.ShowDialog();

            ReduceDim(rdForm);
        }
Пример #3
0
        private void ReduceDim(reduceDimantion rdForm)
        {
            //IF WE REDUCED DIMANTION
            if (rdForm.method_calced == true)
            {
                //SET VALUES FROM FORM
                eigenvalues             = rdForm.eigenvalues;
                traininglData_lower_dim = rdForm.finalData;
                method     = rdForm.method;
                dimSize    = rdForm.dimSize;
                Components = rdForm.Components;

                //set training data with lower dimantion
                SetDataLowerDim(training_data_low_dim_dt, traininglData_lower_dim, dimSize);
            }
        }