Changeset 12390


Ignore:
Timestamp:
05/12/15 11:03:08 (7 years ago)
Author:
gkronber
Message:

#2283: fixed a potential exception and reduced iterations for unit-tests

Location:
branches/HeuristicLab.Problems.GrammaticalOptimization-gkr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Distributions/GaussianModel.cs

    r11976 r12390  
    8787      // p(µ|D) = T2αn (µ| µn, βn/(αnκn))
    8888
    89       var t2alpha = alglib.invstudenttdistribution((int)(2 * posteriorAlpha), random.NextDouble());
     89      var t2alpha = alglib.invstudenttdistribution((int)(2 * posteriorAlpha), Math.Max(random.NextDouble(), 0.00001));
    9090
    9191      var theta = t2alpha * posteriorBeta / (posteriorAlpha * posteriorK) + posteriorMean;
  • branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/Test/RunMctsExperiments.cs

    r12386 r12390  
    155155      var maxSizes = new int[] { 10, 20, 30, 40, 50 };
    156156      int nReps = 30;
    157       int maxIterations = 100000;
     157      int maxIterations = 30000;
    158158      foreach (var instanceFactory in instanceFactories) {
    159159        foreach (var policyFactory in policyFactories) {
     
    182182      var maxSizes = new int[] { 10, 20, 30, 40, 50 };
    183183      int nReps = 30;
    184       int maxIterations = 100000;
     184      int maxIterations = 10000;
    185185      foreach (var instanceFactory in instanceFactories) {
    186186        foreach (var policyFactory in policyFactories) {
     
    209209      var maxSizes = new int[] { 10, 20, 30, 40, 50 };
    210210      int nReps = 30;
    211       int maxIterations = 100000;
     211      int maxIterations = 30000;
    212212      foreach (var instanceFactory in instanceFactories) {
    213213        foreach (var policyFactory in policyFactories) {
     
    236236      var maxSizes = new int[] { 30, 100, 200 };
    237237      int nReps = 30;
    238       int maxIterations = 100000;
     238      int maxIterations = 30000;
    239239      foreach (var instanceFactory in instanceFactories) {
    240240        foreach (var policyFactory in policyFactories) {
     
    260260      var maxSizes = new int[] { 9, 12, 15, 21, 30 };
    261261      int nReps = 30;
    262       int maxIterations = 100000;
     262      int maxIterations = 30000;
    263263      foreach (var instanceFactory in instanceFactories) {
    264264        foreach (var policyFactory in policyFactories) {
Note: See TracChangeset for help on using the changeset viewer.