Changeset 6811
- Timestamp:
- 09/20/11 18:32:08 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis/3.4/SingleObjective/SymbolicTimeSeriesPrognosisSingleObjectiveProblem.cs
r6802 r6811 62 62 MaximumSymbolicExpressionTreeLength.Value = InitialMaximumTreeLength; 63 63 64 SymbolicExpressionTreeGrammarParameter.ValueChanged += (o, e) => ConfigureGrammarSymbols(); 65 66 ConfigureGrammarSymbols(); 67 64 68 InitializeOperators(); 65 69 UpdateEstimationLimits(); 70 } 71 72 private void ConfigureGrammarSymbols() { 73 var grammar = SymbolicExpressionTreeGrammar as TypeCoherentExpressionGrammar; 74 if (grammar != null) grammar.ConfigureAsDefaultTimeSeriesPrognosisGrammar(); 66 75 } 67 76 -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisVariableFrequencyAnalyzer.cs
r6728 r6811 80 80 ItemArray<ISymbolicExpressionTree> expressions = SymbolicExpressionTreeParameter.ActualValue; 81 81 ResultCollection results = ResultCollection; 82 DoubleMatrix impacts;83 82 DataTable datatable; 84 83 if (VariableFrequenciesParameter.ActualValue == null) { … … 86 85 datatable.VisualProperties.XAxisTitle = "Generation"; 87 86 datatable.VisualProperties.YAxisTitle = "Relative Variable Frequency"; 88 impacts = new DoubleMatrix();89 87 VariableFrequenciesParameter.ActualValue = datatable; 90 VariableImpactsParameter.ActualValue = impacts;91 88 results.Add(new Result("Variable frequencies", "Relative frequency of variable references aggregated over the whole population.", datatable)); 92 results.Add(new Result("Variable impacts", "The relative variable relevance calculated as the average relative variable frequency over the whole run.", impacts)); 93 } 94 95 impacts = VariableImpactsParameter.ActualValue; 89 results.Add(new Result("Variable impacts", "The relative variable relevance calculated as the average relative variable frequency over the whole run.", new DoubleMatrix())); 90 } 91 96 92 datatable = VariableFrequenciesParameter.ActualValue; 97 93 // all rows must have the same number of values so we can just take the first … … 117 113 .OrderByDescending(p => p.Impact) 118 114 .ToList(); 119 var matrix = (IStringConvertibleMatrix)impacts; 115 var impacts = new DoubleMatrix(); 116 var matrix = impacts as IStringConvertibleMatrix; 120 117 matrix.Rows = orderedImpacts.Count; 121 118 matrix.RowNames = orderedImpacts.Select(x => x.Name); … … 127 124 } 128 125 126 VariableImpactsParameter.ActualValue = impacts; 127 results["Variable impacts"].Value = impacts; 129 128 return base.Apply(); 130 129 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/TypeCoherentExpressionGrammar.cs
r6803 r6811 192 192 Symbols.Where(s => s.Name == TimeSeriesSymbolsName).First().Enabled = false; 193 193 } 194 195 public void ConfigureAsDefaultTimeSeriesPrognosisGrammar() { 196 Symbols.Where(s => s is Variable).First().Enabled = false; 197 Symbols.Where(s => s.Name == TrigonometricFunctionsName).First().Enabled = false; 198 Symbols.Where(s => s.Name == PowerFunctionsName).First().Enabled = false; 199 Symbols.Where(s => s.Name == ConditionalSymbolsName).First().Enabled = false; 200 } 194 201 } 195 202 }
Note: See TracChangeset
for help on using the changeset viewer.