|
@@ -59,6 +59,7 @@ public class VideoAdThompsonScorerV2 {
|
|
|
item.setScore(score);
|
|
|
result.add(item);
|
|
|
}catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
i++;
|
|
|
}
|
|
@@ -96,6 +97,7 @@ public class VideoAdThompsonScorerV2 {
|
|
|
item.setScore(score);
|
|
|
result.add(item);
|
|
|
}catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
i++;
|
|
|
}
|
|
@@ -132,6 +134,7 @@ public class VideoAdThompsonScorerV2 {
|
|
|
item.setScore(score);
|
|
|
result.add(item);
|
|
|
}catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
i++;
|
|
|
}
|
|
@@ -173,7 +176,7 @@ public class VideoAdThompsonScorerV2 {
|
|
|
}
|
|
|
}else {
|
|
|
statistic =gson.fromJson(jsonStr,CreativeStatistic.class);
|
|
|
- if(Double.parseDouble(statistic.getExp())>exp666Param.getOrDefault("viewThreshold",500d)){
|
|
|
+ if(Double.parseDouble(statistic.getExp())>exp666Param.getOrDefault("viewThreshold",5000d)){
|
|
|
score = betaSampler(1d+Long.parseLong(statistic.getOrder()) , exp666Param.getOrDefault("beta",100000d)+Long.parseLong(statistic.getExp())) *dto.getCpa();
|
|
|
} else if( values.get(i)!=null) {
|
|
|
statistic =gson.fromJson(values.get(i),CreativeStatistic.class);
|
|
@@ -182,12 +185,11 @@ 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){
|
|
|
-
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
i++;
|
|
|
}
|