Changeset 17448 for branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionSolutionVariableImpactsCalculator.cs
- Timestamp:
- 02/25/20 07:41:01 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionSolutionVariableImpactsCalculator.cs
r17416 r17448 33 33 using HeuristicLab.Random; 34 34 35 using DoubleVector = MathNet.Numerics.LinearAlgebra.Vector<double>; 36 35 37 namespace HeuristicLab.Problems.DataAnalysis { 36 38 [StorableType("414B25CD-6643-4E42-9EB2-B9A24F5E1528")] … … 319 321 // new var has same empirical distribution but the relation to y is broken 320 322 // prepare a complete column for the dataset 321 replacementValues = Enumerable.Repeat( new DoubleVector(new[] { double.NaN }), modifiableDataset.Rows).ToList();323 replacementValues = Enumerable.Repeat(DoubleVector.Build.Dense(new[] { double.NaN }), modifiableDataset.Rows).ToList(); 322 324 // shuffle only the selected rows 323 325 var shuffledValues = rows.Select(r => originalValues[r]).Shuffle(random).ToList();
Note: See TracChangeset
for help on using the changeset viewer.