コード例 #1
0
ファイル: FormBase.cs プロジェクト: 4201715125/S4201715125V1
 public FormBase()
 {
     projectService = new ProjectService();
     dataService = new DataService();
     dataFileService = new DataFileService();
     AttributeDefinitionService = new AttributeDefinitionService();
     decisionTableHistoryService = new DecisionTableHistoryService();
     dataMiningService = new DataMiningService();
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: 4201715125/S4201715125V1
        void formApproximation_SelectHandlerTracker(object sender, EventArgs e)
        {
            var decisionTableHistoryView = (DecisionTableHistoryView)sender;
            DataMiningService service = new DataMiningService();
            DataFileService dataFileService = new DataFileService();
            AttributeDefinitionService attributeDefinitionService = new AttributeDefinitionService();

            var activateDataFile = dataFileService.GetActivedDataFile();
            var attributeDefs = attributeDefinitionService.GetList(activateDataFile.Id);

            service.Approximation(attributeDefs, decisionTableHistoryView.Id);
            MessageBox.Show("Run Approximation successfully", "Approximation");
            //var quickReductResult = service.QuickReduct(attributeDefs, decisionTableHistoryView.Id);
            //var dtHistory = quickReductResult.Item1;
            //var reducts = quickReductResult.Item2;
            //var form = new QuickReductResultForm(dtHistory, reducts);
            //form.MdiParent = this;
            //form.Show();
        }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: 4201715125/S4201715125V1
        void formQuickReduct_SelectHandlerTracker(object sender, EventArgs e)
        {
            var decisionTableHistoryView = (DecisionTableHistoryView)sender;
            DataMiningService service = new DataMiningService();
            DataFileService dataFileService = new DataFileService();
            AttributeDefinitionService attributeDefinitionService = new AttributeDefinitionService();

            var activateDataFile = dataFileService.GetActivedDataFile();
            var attributeDefs = attributeDefinitionService.GetList(activateDataFile.Id);
            var quickReductResult = service.QuickReduct(attributeDefs, decisionTableHistoryView.Id);
            var dtHistory = quickReductResult.Item1;
            var reducts = quickReductResult.Item2;
            var form = new QuickReductResultForm(dtHistory, reducts);
            form.MdiParent = this;
            form.Show();
        }