Changeset 17448 for branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeInterpreter.cs
- Timestamp:
- 02/25/20 07:41:01 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeInterpreter.cs
r17401 r17448 20 20 #endregion 21 21 22 using DoubleVector = MathNet.Numerics.LinearAlgebra.Vector<double>; 23 22 24 using System; 23 25 using System.Collections.Generic; … … 28 30 using HeuristicLab.Parameters; 29 31 using HEAL.Attic; 32 using MathNet.Numerics.Statistics; 30 33 31 34 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { … … 566 569 DoubleVector s = VectorEvaluate(dataset, ref row, state); 567 570 for (int i = 1; i < currentInstr.nArguments; i++) { 568 s *= VectorEvaluate(dataset, ref row, state);571 s = s.PointwiseMultiply(VectorEvaluate(dataset, ref row, state)); 569 572 } 570 573 return s; … … 579 582 580 583 case OpCodes.VectorVariable: { 581 if (row < 0 || row >= dataset.Rows) return new DoubleVector(new[] { double.NaN });584 if (row < 0 || row >= dataset.Rows) return DoubleVector.Build.Dense(new[] { double.NaN }); 582 585 var vectorVarTreeNode = currentInstr.dynamicNode as VectorVariableTreeNode; 583 586 return ((IList<DoubleVector>)currentInstr.data)[row] * vectorVarTreeNode.Weight;
Note: See TracChangeset
for help on using the changeset viewer.