|
@@ -45,7 +45,7 @@ public class VideoAdThompsonScorerV2 {
|
|
|
item.setVideoId(param.getVideoId());
|
|
|
item.setCpa(dto.getCpa());
|
|
|
item.setAdId(dto.getCreativeId());
|
|
|
- jsonStr=values.get(i++);
|
|
|
+ jsonStr=values.get(i);
|
|
|
if(jsonStr==null){
|
|
|
score = exp663Param.getOrDefault("randomMin",0.000001)
|
|
|
+ (random.nextDouble() *
|
|
@@ -61,6 +61,7 @@ public class VideoAdThompsonScorerV2 {
|
|
|
}catch (Exception e){
|
|
|
}
|
|
|
}
|
|
|
+ i++;
|
|
|
Collections.sort(result);
|
|
|
return result;
|
|
|
}
|
|
@@ -81,7 +82,7 @@ public class VideoAdThompsonScorerV2 {
|
|
|
item.setVideoId(param.getVideoId());
|
|
|
item.setCpa(dto.getCpa());
|
|
|
item.setAdId(dto.getCreativeId());
|
|
|
- jsonStr=values.get(i++);
|
|
|
+ jsonStr=values.get(i);
|
|
|
if(jsonStr==null){
|
|
|
score = exp664Param.getOrDefault("randomMin",0.000001)
|
|
|
+ (random.nextDouble() *
|
|
@@ -97,6 +98,7 @@ public class VideoAdThompsonScorerV2 {
|
|
|
}catch (Exception e){
|
|
|
}
|
|
|
}
|
|
|
+ i++;
|
|
|
Collections.sort(result);
|
|
|
return result;
|
|
|
}
|
|
@@ -117,7 +119,7 @@ public class VideoAdThompsonScorerV2 {
|
|
|
item.setVideoId(param.getVideoId());
|
|
|
item.setCpa(dto.getCpa());
|
|
|
item.setAdId(dto.getCreativeId());
|
|
|
- jsonStr=values.get(i++);
|
|
|
+ jsonStr=values.get(i);
|
|
|
if(jsonStr==null){
|
|
|
score = betaSampler(exp665Param.getOrDefault("alpha",1d),exp665Param.getOrDefault("beta",100000d));
|
|
|
}else {
|
|
@@ -131,6 +133,7 @@ public class VideoAdThompsonScorerV2 {
|
|
|
}catch (Exception e){
|
|
|
}
|
|
|
}
|
|
|
+ i++;
|
|
|
Collections.sort(result);
|
|
|
return result;
|
|
|
}
|
|
@@ -177,12 +180,14 @@ public class VideoAdThompsonScorerV2 {
|
|
|
score = betaSampler(exp666Param.getOrDefault("alpha",1d),exp666Param.getOrDefault("beta",100000d));
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
score=score*dto.getCpa()*dto.getBid1()*dto.getBid2();
|
|
|
item.setScore(score);
|
|
|
result.add(item);
|
|
|
}catch (Exception e){
|
|
|
|
|
|
}
|
|
|
+ i++;
|
|
|
}
|
|
|
Collections.sort(result);
|
|
|
return result;
|