Changeset 12290 for branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Common/OnlineMeanAndVarianceEstimator.cs
- Timestamp:
- 04/07/15 14:31:06 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.GrammaticalOptimization-gkr
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Common/OnlineMeanAndVarianceEstimator.cs
r11849 r12290 19 19 20 20 var delta = reward - Avg; 21 Avg += delta / N; 21 //Avg += delta / N; 22 // double alpha = 0.01; 23 double alpha = 1.0 / N; 24 Avg = Avg + alpha * (delta); 22 25 sampleM2 += delta * (reward - Avg); 23 26 }
Note: See TracChangeset
for help on using the changeset viewer.