Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

solve issue that aggregator wasn't aggregating correctly

  • Loading branch information...
commit 9a87175652bb5d3647ddab74070652c13c6bbc2f 1 parent 949bc50
@fbrubacher authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 storm-ml/src/main/java/com/twitter/algorithms/Aggregator.java
View
4 storm-ml/src/main/java/com/twitter/algorithms/Aggregator.java
@@ -43,8 +43,8 @@ public void execute(Tuple tuple) {
MathUtil.plus(aggregateWeights, weight);
}
totalUpdateWeight += parallelUpdateWeight;
- LOG.info("totalUpdate");
- LOG.info(totalUpdateWeight);
+ LOG.info("aggregate weights" + aggregateWeights);
+ MathUtil.times(aggregateWeights, 1.0 / totalUpdateWeight);
if (aggregateWeights != null) {
memcache.set("model", 3600 * 24, aggregateWeights);
}
Please sign in to comment.
Something went wrong with that request. Please try again.