|
@@ -406,7 +406,6 @@ public class VideoAdThompsonScorerV2 {
|
|
|
|
|
|
double w1 = Double.parseDouble(exp670Param.getOrDefault("w1", "1").toString());
|
|
|
double w2 = Double.parseDouble(exp670Param.getOrDefault("w2", "1").toString());
|
|
|
- String scoreCalcWay = exp670Param.getOrDefault("scoreCalcWay", "statistic").toString();
|
|
|
|
|
|
double alpha = Double.parseDouble(exp670Param.getOrDefault("alpha", "0").toString());
|
|
|
double cidBeta = Double.parseDouble(exp670Param.getOrDefault("cidBeta", "0").toString());
|
|
@@ -430,15 +429,10 @@ public class VideoAdThompsonScorerV2 {
|
|
|
double cidExp = cidStatistic.parseExpToDouble();
|
|
|
double vidCidExp = vidCidStatistic.parseExpToDouble();
|
|
|
|
|
|
- double cidScore = 0.0, vidCidScore = 0.0;
|
|
|
-
|
|
|
- if ("thompson".equals(scoreCalcWay)) {
|
|
|
- cidScore = this.betaSampler(cidStatistic.parseOrderToDouble() + alpha, cidStatistic.parseExpToDouble() + cidBeta);
|
|
|
- vidCidScore = this.betaSampler(vidCidStatistic.parseOrderToDouble() + alpha, vidCidStatistic.parseExpToDouble() + vidCidBeta);
|
|
|
- } else {
|
|
|
- cidScore = this.orderDivideExp(cidStatistic);
|
|
|
- vidCidScore = this.orderDivideExp(vidCidStatistic);
|
|
|
- }
|
|
|
+ // double cidScore = this.betaSampler(cidStatistic.parseOrderToDouble() + alpha, cidStatistic.parseExpToDouble() + cidBeta);
|
|
|
+ // double vidCidScore = this.betaSampler(vidCidStatistic.parseOrderToDouble() + alpha, vidCidStatistic.parseExpToDouble() + vidCidBeta);
|
|
|
+ double cidScore = this.orderDivideExp(cidStatistic);
|
|
|
+ double vidCidScore = this.orderDivideExp(vidCidStatistic);
|
|
|
|
|
|
|
|
|
if (w1 != 0 || w2 != 0) {
|