コード例 #1
0
        private void RunAssociationRulesMining()
        {
            TypeOfPreferrence typeOfPreferrence = TypeOfPreferrence.Both_PositiveAndNegativePreferrence;

            if (rdoPositive.Checked == true)
            {
                typeOfPreferrence = TypeOfPreferrence.PositivePreferrence;
            }
            else
            if (rdoNegative.Checked == true)
            {
                typeOfPreferrence = TypeOfPreferrence.NegativePreferrence;
            }
            else
            if (rdoBoth.Checked == true)
            {
                typeOfPreferrence = TypeOfPreferrence.Both_PositiveAndNegativePreferrence;
            }

            float supportlevel = float.Parse(txtMinSupportLevel.Text);

            MAPresApplication.Workspace.PerformAssociationRulesMining(OnAssociationRuleMiningProgress, typeOfPreferrence, supportlevel, false);
            MAPResDatasetViewer dtw = new MAPResDatasetViewer();

            dtw.ShowAllAssociationRules();
            Dispose();
        }
コード例 #2
0
        private void associationRulesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (MAPresApplication.Workspace.ProjectOpen == false)
            {
                MessageBox.Show(this, "Please open or create new project", "IMSB MAPRes", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            MAPResDatasetViewer dtw = new MAPResDatasetViewer();

            dtw.ShowAllAssociationRules();
        }