Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/15/13 10:47:09 (11 years ago)
Author:
sforsten
Message:

#1980:

  • added problem instance provider to import csv files for ConditionActionClassificationProblemData
  • adapted LCSAdaptedGeneticAlgorithm to use the crossover probability
  • fixed a bug in XCSModelView
Location:
branches/LearningClassifierSystems/HeuristicLab.Problems.XCS.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/LearningClassifierSystems/HeuristicLab.Problems.XCS.Views/3.3

    • Property svn:ignore set to
      Plugin.cs
      *.user
  • branches/LearningClassifierSystems/HeuristicLab.Problems.XCS.Views/3.3/XCSModelView.cs

    r9154 r9160  
    5252        if (Content == null) {
    5353          dataGridView.Rows.Clear();
     54        } else {
     55
     56          dataGridView.RowCount = Content.Count;
     57
     58          int row = 0;
     59          foreach (var xcsClassifier in Content) {
     60            dataGridView[0, row].Value = xcsClassifier.Classifier.ToString();
     61            dataGridView[1, row].Value = xcsClassifier.Prediction.ToString();
     62            dataGridView[2, row].Value = xcsClassifier.PredictionError.ToString();
     63            dataGridView[3, row].Value = xcsClassifier.Fitness.ToString();
     64            dataGridView[4, row].Value = xcsClassifier.Numerosity.ToString();
     65            dataGridView[5, row].Value = xcsClassifier.Timestamp.ToString();
     66            dataGridView[6, row].Value = xcsClassifier.Experience.ToString();
     67            dataGridView[7, row].Value = xcsClassifier.AverageActionSetSize.ToString();
     68            row++;
     69          }
     70
     71          dataGridView.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.ColumnHeader);
     72          dataGridView.AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders);
    5473        }
    55 
    56         dataGridView.RowCount = Content.Count;
    57 
    58         int row = 0;
    59         foreach (var xcsClassifier in Content) {
    60           dataGridView[0, row].Value = xcsClassifier.Classifier.ToString();
    61           dataGridView[1, row].Value = xcsClassifier.Prediction.ToString();
    62           dataGridView[2, row].Value = xcsClassifier.PredictionError.ToString();
    63           dataGridView[3, row].Value = xcsClassifier.Fitness.ToString();
    64           dataGridView[4, row].Value = xcsClassifier.Numerosity.ToString();
    65           dataGridView[5, row].Value = xcsClassifier.Timestamp.ToString();
    66           dataGridView[6, row].Value = xcsClassifier.Experience.ToString();
    67           dataGridView[7, row].Value = xcsClassifier.AverageActionSetSize.ToString();
    68           row++;
    69         }
    70 
    71         dataGridView.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.ColumnHeader);
    72         dataGridView.AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders);
    7374      }
    7475    }
Note: See TracChangeset for help on using the changeset viewer.