コード例 #1
0
ファイル: Core.cs プロジェクト: kdworak/API
 /// <summary>
 /// Runs this instance.
 /// </summary>
 public void Run()
 {
     Loader loader = new Loader(@"G:\ds\car_tr.am");
     DataTable dataTable = loader.ConvertToDataTable();
     Tree = new Data(dataTable);
     Tree.LearnTree();
 }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: kdworak/API
        public MainWindow()
        {
            InitializeComponent();
            Core core = new Core();
            core.Run();

            Loader loader = new Loader(null);
            {
                List<double[]> result = loader.LoadRawData();
                int index = 1;
                foreach (double[] tab in result)
                {
                    
                    if (index > 30)
                    {
                        // stop here
                    }
                    int decision = core.GetDecision(tab);
                    loader.SaveToResult(decision);
                    index++;
                }
            }
            loader.SaveToResult(666, true);
            loader = null;
            //double[] input = { 3, 0, 0, 0, 0, 1 };   // przykładowa wartość atrybutów decyzyjnych
            textBlock1.Text = "Done!"; //core.GetDecision(input).ToString();
        }