Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/21 14:29:30 (3 years ago)
Author:
chaider
Message:

#3075

  • Added target without noise to noisy instances
  • Moved noise calculation to descriptor
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Feynman/FeynmanBonus14.cs

    r17966 r17973  
    3737
    3838    protected override string[] VariableNames {
    39       get { return new[] {"q", "y", "Volt", "d", "epsilon", noiseRatio == null ? "F" : "F_noise"}; }
     39      get { return noiseRatio == null ? new[] { "q", "y", "Volt", "d", "epsilon", "F" } : new[] { "q", "y", "Volt", "d", "epsilon", "F", "F_noise"}; }
    4040    }
    4141
     
    7575      }
    7676
    77       if (noiseRatio != null) {
    78         var F_noise     = new List<double>();
    79         var sigma_noise = (double) Math.Sqrt(noiseRatio.Value) * F.StandardDeviationPop();
    80         F_noise.AddRange(F.Select(md => md + NormalDistributedRandomPolar.NextDouble(rand, 0, sigma_noise)));
    81         data.Remove(F);
    82         data.Add(F_noise);
    83       }
     77      var targetNoise = GetNoisyTarget(F, rand);
     78      if (targetNoise != null) data.Add(targetNoise);
    8479
    8580      return data;
Note: See TracChangeset for help on using the changeset viewer.