private Microsoft.Msagl.Drawing.Graph DisplayTheGraph(cPlate PlateForTree) { FormForClassificationTree WindowForTree = new FormForClassificationTree(); WindowForTree.Text = PlateForTree.GetName(); string StringForTree = PlateForTree.GetInfoClassif().StringForTree; if ((StringForTree == null) || (StringForTree.Length == 0)) return null; WindowForTree.richTextBoxConsoleForClassification.Clear(); WindowForTree.richTextBoxConsoleForClassification.AppendText(cGlobalInfo.CurrentScreening.GetCurrentDisplayPlate().GetInfoClassif().StringForQuality); WindowForTree.richTextBoxConsoleForClassification.AppendText(cGlobalInfo.CurrentScreening.GetCurrentDisplayPlate().GetInfoClassif().ConfusionMatrix); return ComputeAndDisplayGraph(StringForTree.Remove(StringForTree.Length - 3, 3), false); }
private void button_Trees_Click(object sender, EventArgs e) { if (CompleteScreening == null) return; FormForClassificationTree WindowForTree = new FormForClassificationTree(); WindowForTree.Text = CompleteScreening.GetCurrentDisplayPlate().Name; string StringForTree = CompleteScreening.GetCurrentDisplayPlate().GetInfoClassif().StringForTree; if ((StringForTree == null) || (StringForTree.Length == 0)) { MessageBox.Show("No tree avaliable for the selected plate !", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } WindowForTree.gViewerForTreeClassif.Graph = ComputeAndDisplayGraph(StringForTree.Remove(StringForTree.Length - 3, 3)); WindowForTree.richTextBoxConsoleForClassification.Clear(); WindowForTree.richTextBoxConsoleForClassification.AppendText(CompleteScreening.GetCurrentDisplayPlate().GetInfoClassif().StringForQuality); WindowForTree.richTextBoxConsoleForClassification.AppendText(CompleteScreening.GetCurrentDisplayPlate().GetInfoClassif().ConfusionMatrix); WindowForTree.Show(); }
public FormForClassificationTree DisplayTree(cGlobalInfo GlobalInfo, J48 J48Model, bool IsCellular) { FormForClassificationTree WindowForTree = new FormForClassificationTree(); string StringForTree = J48Model.graph().Remove(0, J48Model.graph().IndexOf("{") + 2); WindowForTree.gViewerForTreeClassif.Graph = cGlobalInfo.WindowHCSAnalyzer.ComputeAndDisplayGraph(StringForTree.Remove(StringForTree.Length - 3, 3), IsCellular); return WindowForTree; }