Ver Fonte

repair buckets

sunmingze há 1 ano atrás
pai
commit
c94b6c7535

+ 3 - 3
ad-engine-commons/src/main/java/com/tzld/piaoquan/ad/engine/commons/base/AdActionFeature.java

@@ -16,9 +16,9 @@ public class AdActionFeature {
     }
 
     private double bucketRatioFeature(Double key) {
-        long bucket = Math.round(Math.log((key + 1) * 1000));
-        if (bucket > 1000)
-            bucket = 1000;
+        long bucket = Math.round(Math.log((key + 1) * 50));
+        if (bucket > 50)
+            bucket = 50;
         return (double) bucket;
     }