Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/25/20 07:41:01 (5 years ago)
Author:
pfleck
Message:

#3040 Replaced own Vector with MathNet.Numerics Vector.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionSolutionVariableImpactsCalculator.cs

    r17416 r17448  
    3333using HeuristicLab.Random;
    3434
     35using DoubleVector = MathNet.Numerics.LinearAlgebra.Vector<double>;
     36
    3537namespace HeuristicLab.Problems.DataAnalysis {
    3638  [StorableType("414B25CD-6643-4E42-9EB2-B9A24F5E1528")]
     
    319321          // new var has same empirical distribution but the relation to y is broken
    320322          // 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();
    322324          // shuffle only the selected rows
    323325          var shuffledValues = rows.Select(r => originalValues[r]).Shuffle(random).ToList();
Note: See TracChangeset for help on using the changeset viewer.