Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10440


Ignore:
Timestamp:
02/05/14 09:47:42 (11 years ago)
Author:
gkronber
Message:

#2137: fixed a bug in the calculation of noise std.dev. in the feasture selection problem instances for symbolic regression

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/FeatureSelection/FeatureSelection.cs

    r9456 r10440  
    4848               + "Where is the S is a N x d matrix containing the selected columns from N x k the matrix of all features X" + Environment.NewLine
    4949               + "For each feature the probability that it is selected is " + selectionProbability + "%" + Environment.NewLine
    50                + "X(i,j) ~ N(0, 1) iid, w(i) ~ U(0, 10) iid, n ~ N(0, sigma(w*S) * SQRT(" + noiseRatio + "))" + Environment.NewLine
     50               + "X(i,j) ~ N(0, 1) iid, w(i) ~ U(0, 10) iid, n ~ N(0, sigma(w*S) * SQRT(" + noiseRatio / (1 - noiseRatio)  + "))" + Environment.NewLine
    5151               + "The noise level is " + noiseRatio + " * sigma, thus an optimal model has R² = "
    5252               + Math.Round(optimalRSquared, 2) + " (or equivalently: NMSE = " + noiseRatio + ")" + Environment.NewLine
     
    131131      }
    132132      var targetSigma = target.StandardDeviation();
    133       var noisePrng = new NormalDistributedRandom(random, 0, targetSigma * Math.Sqrt(noiseRatio));
     133      var noisePrng = new NormalDistributedRandom(random, 0, targetSigma * Math.Sqrt(noiseRatio / (1.0 - noiseRatio)));
    134134
    135135      data.Add(target.Select(t => t + noisePrng.NextDouble()).ToList());
Note: See TracChangeset for help on using the changeset viewer.