Changeset 14951 for trunk/sources
- Timestamp:
- 05/10/17 10:31:21 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionConstantOptimizationEvaluator.cs
r14946 r14951 194 194 int col = 0; 195 195 foreach (var info in parameterEntries) { 196 int lag = info.lag;197 196 if (ds.VariableHasType<double>(info.variableName)) { 198 197 x[row, col] = ds.GetDoubleValue(info.variableName, r + info.lag); … … 242 241 foreach (var node in tree.Root.IterateNodesPrefix().OfType<SymbolicExpressionTreeTerminalNode>()) { 243 242 ConstantTreeNode constantTreeNode = node as ConstantTreeNode; 244 VariableTreeNode variableTreeNode = node as VariableTreeNode; 245 LaggedVariableTreeNode laggedVarTreeNode = node as LaggedVariableTreeNode; 246 BinaryFactorVariableTreeNode binFactorVarTreeNode = node as BinaryFactorVariableTreeNode; 243 VariableTreeNodeBase variableTreeNodeBase = node as VariableTreeNodeBase; 247 244 FactorVariableTreeNode factorVarTreeNode = node as FactorVariableTreeNode; 248 245 if (constantTreeNode != null) 249 246 constantTreeNode.Value = constants[i++]; 250 else if (updateVariableWeights && variableTreeNode != null) 251 variableTreeNode.Weight = constants[i++]; 252 else if (updateVariableWeights && laggedVarTreeNode != null) 253 laggedVarTreeNode.Weight = constants[i++]; 254 else if (updateVariableWeights && binFactorVarTreeNode != null) 255 binFactorVarTreeNode.Weight = constants[i++]; 247 else if (updateVariableWeights && variableTreeNodeBase != null) 248 variableTreeNodeBase.Weight = constants[i++]; 256 249 else if (factorVarTreeNode != null) { 257 250 for (int j = 0; j < factorVarTreeNode.Weights.Length; j++)
Note: See TracChangeset
for help on using the changeset viewer.