Ejemplo n.º 1
0
 public FormBase()
 {
     projectService = new ProjectService();
     dataService = new DataService();
     dataFileService = new DataFileService();
     AttributeDefinitionService = new AttributeDefinitionService();
     decisionTableHistoryService = new DecisionTableHistoryService();
     dataMiningService = new DataMiningService();
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        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();
        }