Changeset 11730 for branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.Bandits/Policies/BernoulliThompsonSamplingPolicy.cs
- Timestamp:
- 01/02/15 16:08:21 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.Bandits/Policies/BernoulliThompsonSamplingPolicy.cs
r11727 r11730 55 55 Array.Clear(failure, 0, failure.Length); 56 56 } 57 58 public override void PrintStats() { 59 for (int i = 0; i < success.Length; i++) { 60 if (success[i] >= 0) { 61 Console.Write("{0,5:F2}", success[i] / failure[i]); 62 } else { 63 Console.Write("{0,5}", ""); 64 } 65 } 66 Console.WriteLine(); 67 } 68 69 public override string ToString() { 70 return "BernoulliThompsonSamplingPolicy"; 71 } 57 72 } 58 73 }
Note: See TracChangeset
for help on using the changeset viewer.