- Timestamp:
- 11/26/10 13:40:42 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 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 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/VariableFrequencyAnalyser.cs
r4722 r4945 75 75 76 76 public override IOperation Apply() { 77 var inputVariables = DataAnalysisProblemData.InputVariables. Select(x => x.Value);77 var inputVariables = DataAnalysisProblemData.InputVariables.CheckedItems.Select(x => x.Value.Value); 78 78 if (VariableFrequencies == null) { 79 79 VariableFrequencies = new DoubleMatrix(0, 1, inputVariables);
Note: See TracChangeset
for help on using the changeset viewer.