Changeset 18234 for branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Timestamp:
- 03/14/22 11:35:10 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/VectorUnrollingNonlinearLeastSquaresConstantOptimizationEvaluator.cs
r17726 r18234 85 85 .SelectMany(var => problemData.Dataset.GetDoubleVectorValues(var, rows)) 86 86 .Select(v => v.Count); 87 var vectorlength = vectorLengths.First(); 88 if (vectorLengths.Any(l => l != vectorlength)) 87 if (vectorLengths.Distinct().Count() > 1) 89 88 throw new InvalidOperationException("All vectors must be of same length."); 90 89 var evaluationTraces = interpreter.GetIntermediateNodeValues(tree, problemData.Dataset, rows);
Note: See TracChangeset
for help on using the changeset viewer.