Changeset 4945 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers
- Timestamp:
- 11/26/10 13:40:42 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/SymbolicRegressionVariableFrequencyAnalyzer.cs
r4722 r4945 79 79 ItemArray<SymbolicExpressionTree> expressions = SymbolicExpressionTreeParameter.ActualValue; 80 80 DataAnalysisProblemData problemData = ProblemDataParameter.ActualValue; 81 var inputVariables = problemData.InputVariables. Select(x => x.Value);81 var inputVariables = problemData.InputVariables.CheckedItems.Select(x => x.Value.Value); 82 82 ResultCollection results = ResultsParameter.ActualValue; 83 83 84 84 if (VariableFrequencies == null) { 85 85 VariableFrequencies = new DataTable("Variable frequencies", "Relative frequency of variable references aggregated over the whole population."); 86 VariableFrequencies.VisualProperties.XAxisTitle = "Generations"; 87 VariableFrequencies.VisualProperties.YAxisTitle = "Relative Variable Frequencies"; 86 88 // add a data row for each input variable 87 foreach (var inputVariable in inputVariables) 88 VariableFrequencies.Rows.Add(new DataRow(inputVariable)); 89 foreach (var inputVariable in inputVariables) { 90 DataRow row = new DataRow(inputVariable); 91 row.VisualProperties.StartIndexZero = true; 92 VariableFrequencies.Rows.Add(row); 93 } 89 94 results.Add(new Result("Variable frequencies", VariableFrequencies)); 90 95 }
Note: See TracChangeset
for help on using the changeset viewer.