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(); }
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; } }
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); } }
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(); }
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."); } }
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."); } }
//LOAD CLASSIFICATOR public void LoadClassificatorEnd(ClasyficatorType classificationType) { this.SetFormStateArferLoadClassificator(classificationType); }