private void btLeftShowAsText_Click(object sender, EventArgs e)
 {
     FrmTextBox ftb = new FrmTextBox();
     ftb.Text = "Left node values for " + pred.Variable.Name;
     for (int i = 0; i < lbLeft.Items.Count; ++i) {
         ftb.TextBox.Text+=lbLeft.Items[i];
         if (i < (lbLeft.Items.Count - 1)) {
             ftb.TextBox.Text+="\r\n";
         }
     }
     ftb.Show();
 }
Пример #2
0
        public override void LocalMinimumSearchMv()
        {
            Def.LogMessage = "";
            //Gini.MinImpMvStartingFromBestNumericalNoOtherOrder(this, BestSplit);
            //Gini.MinImpMvStartingFromBestNumericalOrderedByBestUnivariateNumericalSplits(this, BestSplit);
            //Gini.MinImpMvStartingFromBestNominalNoOtherOrder(this, BestSplit);
            //Gini.MinImpMvStartingFromBestNominalOrderedByBestUnivariateNumericalSplit(this, BestSplit);

            Gini.MinImpMvGreed(this, BestSplit);

            if (!Def.ExperimentRunning) {
                FrmTextBox ft = new FrmTextBox();
                ft.TextBox.Text = Def.LogMessage;
                ft.TextBox.Font = new Font("Monotype", 10);
                ft.Text = "Log messages";
                ft.Show();
            }
            //this.MvTb.DataFill();
            //string f="";
            //for (int y = 0; y < Table.RowCount; ++y) {
            //    for (int x = 0; x < MvTb.PredMvLst.Count; ++x) {
            //        f += MvTb.PredMvLst[x].X(y) + " ";
            //    }
            //    f += Environment.NewLine;
            //}
            //FE.Show(f, "data");
        }