Changeset 14243 for branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Timestamp:
- 08/08/16 13:00:06 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionConstantOptimizationEvaluator.cs
r14237 r14243 205 205 ConstantTreeNode constantTreeNode = node as ConstantTreeNode; 206 206 VariableTreeNode variableTreeNode = node as VariableTreeNode; 207 FactorVariableTreeNode factorVariableTreeNode = node asFactorVariableTreeNode;207 BinaryFactorVariableTreeNode factorVariableTreeNode = node as BinaryFactorVariableTreeNode; 208 208 if (constantTreeNode != null) 209 209 c[i++] = constantTreeNode.Value; … … 273 273 ConstantTreeNode constantTreeNode = node as ConstantTreeNode; 274 274 VariableTreeNode variableTreeNode = node as VariableTreeNode; 275 FactorVariableTreeNode factorVarTreeNode = node asFactorVariableTreeNode;275 BinaryFactorVariableTreeNode factorVarTreeNode = node as BinaryFactorVariableTreeNode; 276 276 if (constantTreeNode != null) 277 277 constantTreeNode.Value = constants[i++]; … … 305 305 return true; 306 306 } 307 if (node.Symbol is Variable || node.Symbol is FactorVariable) {307 if (node.Symbol is Variable || node.Symbol is BinaryFactorVariable) { 308 308 var varNode = node as VariableTreeNodeBase; 309 var factorVarNode = node as FactorVariableTreeNode;309 var factorVarNode = node as BinaryFactorVariableTreeNode; 310 310 // factor variable values are only 0 or 1 and set in x accordingly 311 311 var par = new AutoDiff.Variable(); … … 493 493 where 494 494 !(n.Symbol is Variable) && 495 !(n.Symbol is FactorVariable) &&495 !(n.Symbol is BinaryFactorVariable) && 496 496 !(n.Symbol is Constant) && 497 497 !(n.Symbol is Addition) &&
Note: See TracChangeset
for help on using the changeset viewer.