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/FeynmanBonus10.cs

    r17966 r17973  
    3636
    3737    protected override string[] VariableNames {
    38       get { return new[] {"d", "G", "m1", "m2", noiseRatio == null ? "t" : "t_noise"}; }
     38      get { return noiseRatio == null ? new[] { "d", "G", "m1", "m2", "t" } : new[] { "d", "G", "m1", "m2", "t", "t_noise" }; }
    3939    }
    4040
     
    7070      }
    7171
    72       if (noiseRatio != null) {
    73         var t_noise     = new List<double>();
    74         var sigma_noise = (double) Math.Sqrt(noiseRatio.Value) * t.StandardDeviationPop();
    75         t_noise.AddRange(t.Select(md => md + NormalDistributedRandomPolar.NextDouble(rand, 0, sigma_noise)));
    76         data.Remove(t);
    77         data.Add(t_noise);
    78       }
     72      var targetNoise = GetNoisyTarget(t, rand);
     73      if (targetNoise != null) data.Add(targetNoise);
    7974
    8075      return data;
Note: See TracChangeset for help on using the changeset viewer.