Esempio n. 1
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         model                  = comboAlgo.SelectedValue.ToString();
         txt1.Text             += model + Environment.NewLine;
         TheWeka.colClass       = TheTool.getInt(txtColClass);
         TheWeka.classify_model = comboAlgo.SelectedIndex;
         TheWeka.random_sort    = checkRSort.IsChecked.Value;
         //
         setTestMode();
         //-------------------
         TheWeka.do_Classification_full(false);
         txt1.Text      += TheWeka.txt_report_short;
         txt1.CaretIndex = txt1.Text.Length;//move Cursor
         //-------------------------------
         //------- Show Each Report -----------
         lastResult = TheWeka.listResult;
         listResult.Add(lastResult);
         showReport();
         //-------------------------------
         //------- Summary Table -----
         writeSummaryTable();
         testID++;
     }
     catch { }
 }
Esempio n. 2
0
        //** ERROR **

        static public string classify()
        {
            try
            {
                Instances inst = TheWeka.createInstance(path_file_test);
                return(TheWeka.do_Classification_bySerialClassfier_1out_standAlone(classifier, inst, colClass));
            }
            catch (Exception ex) { TheSys.showError(ex.ToString(), true); return(""); }
        }
Esempio n. 3
0
 private void butLoad_Click(object sender, RoutedEventArgs e)
 {
     TheURL.dm_path_file = txtPath.Text;
     TheWeka.step_loadInstance();
     if (instanceReady == false)
     {
         button1.IsEnabled  = true;
         butLoad.Foreground = Brushes.Black;
         instanceReady      = true;
     }
     file_name  = TheTool.getFileName_byPath(TheURL.dm_path_file);
     txt1.Text += "File: " + file_name + Environment.NewLine + Environment.NewLine;
 }