- Timestamp:
- 04/07/15 14:31:06 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.GrammaticalOptimization-gkr
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Common/ExpressionExtender.cs
r12024 r12290 140 140 private Expr ExpandFactors(IEnumerable<Factor> factors) { 141 141 // if (invFactors.Count > 0) throw new NotImplementedException(); 142 Debug.Assert(!factors.First().IsInverse); // the first factor is never an inverted factor142 //Debug.Assert(!factors.First().IsInverse); // the first factor is never an inverted factor 143 143 144 144 // each factor could be a list of terms (expression) -
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.