Changeset 14946 for trunk/sources
- Timestamp:
- 05/09/17 18:23:29 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionConstantOptimizationEvaluator.cs
r14843 r14946 196 196 int lag = info.lag; 197 197 if (ds.VariableHasType<double>(info.variableName)) { 198 x[row, col] = ds.GetDoubleValue(info.variableName, r + lag);198 x[row, col] = ds.GetDoubleValue(info.variableName, r + info.lag); 199 199 } else if (ds.VariableHasType<string>(info.variableName)) { 200 200 x[row, col] = ds.GetStringValue(info.variableName, r) == info.variableValue ? 1 : 0; … … 218 218 alglib.lsfitfit(state, function_cx_1_func, function_cx_1_grad, null, null); 219 219 alglib.lsfitresults(state, out retVal, out c, out rep); 220 } catch (ArithmeticException) { 220 } 221 catch (ArithmeticException) { 221 222 return originalQuality; 222 } catch (alglib.alglibexception) { 223 } 224 catch (alglib.alglibexception) { 223 225 return originalQuality; 224 226 } … … 241 243 ConstantTreeNode constantTreeNode = node as ConstantTreeNode; 242 244 VariableTreeNode variableTreeNode = node as VariableTreeNode; 245 LaggedVariableTreeNode laggedVarTreeNode = node as LaggedVariableTreeNode; 243 246 BinaryFactorVariableTreeNode binFactorVarTreeNode = node as BinaryFactorVariableTreeNode; 244 247 FactorVariableTreeNode factorVarTreeNode = node as FactorVariableTreeNode; … … 247 250 else if (updateVariableWeights && variableTreeNode != null) 248 251 variableTreeNode.Weight = constants[i++]; 252 else if (updateVariableWeights && laggedVarTreeNode != null) 253 laggedVarTreeNode.Weight = constants[i++]; 249 254 else if (updateVariableWeights && binFactorVarTreeNode != null) 250 255 binFactorVarTreeNode.Weight = constants[i++];
Note: See TracChangeset
for help on using the changeset viewer.