예제 #1
0
        private void SetFormStateAfterLearn(ClasyficatorType classificationType)
        {
            //buttons and progress bar
            changeLearningButtons(false);
            this.progressBarLearn.Visible = false;
            this.progressBarLearn.Value   = ProgressBarClassification.Minimum;

            //label stanu klasyfikacji
            SetClassificatorState();
            SetClassificationInfoAfterLearn(classificationType);

            //wybór reprzentacji s³owników i dokumentów
            SetEnableRadioButtonRepresentation(true);

            //zmiana operacji (nauka/klasyfikacjia)
            this.RadialNetworkToolStripMenuItem.Enabled = true;
            this.BayesToolStripMenuItem.Enabled         = true;

            //menu
            this.preproccesingToolStripMenuItem.Enabled = true;
            this.saveBayesToolStripMenuItem.Enabled     = true;
            this.saveNetworkToolStripMenuItem.Enabled   = true;
            this.loadBayesToolStripMenuItem.Enabled     = true;
            this.loadNetworkToolStripMenuItem.Enabled   = true;
            this.loadToolStripMenuItem.Enabled          = true;

            this.buttonLearningStart1.Enabled      = true;
            this.buttonClassificationStart.Enabled = true;

            //menu (NA KONCU)
            SetMenuSaveClassificatorState();
        }
예제 #2
0
        private void SetClassificatorState()
        {
            ClasyficatorType classificationType = (ClasyficatorType)Settings.Default.clasificatorType;

            switch (classificationType)
            {
            case ClasyficatorType.Bayes:
                labelClassificationNameClassificatorState.Text = "Stan klasyfikatora Bayes'a:";
                if (controller.IsAfterLearn())
                {
                    labelClassificationValueClassificatorState.Text = "Nauczony";
                }
                else
                {
                    labelClassificationValueClassificatorState.Text = "Nie nauczony";
                }
                break;

            case ClasyficatorType.RadialNeural:
                labelClassificationNameClassificatorState.Text = "Stan sieci:";
                if (controller.IsAfterLearn())
                {
                    labelClassificationValueClassificatorState.Text = "Nauczona";
                }
                else
                {
                    labelClassificationValueClassificatorState.Text = "Nie nauczona";
                }
                break;

            default:
                break;
            }
        }
예제 #3
0
 private void SetClassificationInfoAfterLearn(ClasyficatorType classificationType)
 {
     if (classificationType == ClasyficatorType.RadialNeural && this.controller.IsAfterLearn(ClasyficatorType.RadialNeural))
     {
         labelClassificationValueDirectory.Text = DictionaryTypeUtil.ToString(controller.LearnDictionaryType);
         labelClassificationValueDocument.Text  = DocumentRepresentationTypeUtil.ToString(controller.LearnDocumentRepresentationType);
     }
 }
예제 #4
0
        public void  SetFormStateArferLoadClassificator(ClasyficatorType classificateType)
        {
            //labele nauki
            this.SetLearningInfo();

            //label mówi¹cy o stanie klasyfikatora
            SetClassificatorState();
            SetClassificationInfoAfterLearn(classificateType);

            //stan menu zapisu klasyfikatorów
            SetMenuSaveClassificatorState();
        }
예제 #5
0
        public bool IsAfterLearn(ClasyficatorType classificatorType)
        {
            switch (classificatorType)
            {
            case ClasyficatorType.Bayes:
                return(this.bayesClassificator != null);

            case ClasyficatorType.RadialNeural:
                return(radialNetwork != null);

            default:
                throw new NotImplementedException("Nieznany typ klasyfikacji.");
            }
        }
예제 #6
0
        public static String ToString(ClasyficatorType classificatorType)
        {
            switch (classificatorType)
            {
            case ClasyficatorType.Bayes:
                return("Bayes");

            case ClasyficatorType.RadialNeural:
                return("RadialNeural");

            default:
                throw new Exception("Methode not implemented for this type.");
            }
        }
예제 #7
0
        //LOAD CLASSIFICATOR

        public void LoadClassificatorEnd(ClasyficatorType classificationType)
        {
            this.SetFormStateArferLoadClassificator(classificationType);
        }