|
@@ -58,8 +58,11 @@ public class VideoAdThompsonScorerV2 {
|
|
|
score = (exp663Param.getOrDefault("alpha",1d)+Long.parseLong(statistic.getOrder()))
|
|
|
/ (exp663Param.getOrDefault("beta",10000d)+Long.parseLong(statistic.getExp())) ;
|
|
|
}
|
|
|
+ double s1 = score;
|
|
|
score=score*dto.getCpa()*dto.getBid1()*dto.getBid2();
|
|
|
+
|
|
|
Map<String, Object> ext = this.extMap(statistic, "663", dto.getCpa(), null, exp663Param.getOrDefault("alpha", 1d), exp663Param.getOrDefault("beta", 10000d), null);
|
|
|
+ ext.put("s1", s1);
|
|
|
item.setExt(ext);
|
|
|
item.setScore(score);
|
|
|
item.setScore_type(663);
|
|
@@ -100,10 +103,12 @@ public class VideoAdThompsonScorerV2 {
|
|
|
score = (exp664Param.getOrDefault("alpha",1d)+Long.parseLong(statistic.getOrder()))
|
|
|
/ (exp664Param.getOrDefault("beta",10000d)+Long.parseLong(statistic.getExp())) ;
|
|
|
}
|
|
|
+ double s1 = score;
|
|
|
score=score*dto.getCpa()*dto.getBid1()*dto.getBid2();
|
|
|
item.setScore(score);
|
|
|
|
|
|
Map<String, Object> ext = this.extMap(statistic, "664", dto.getCpa(), null, exp663Param.getOrDefault("alpha", 1d), exp663Param.getOrDefault("beta", 10000d), null);
|
|
|
+ ext.put("s1", s1);
|
|
|
item.setExt(ext);
|
|
|
item.setScore_type(664);
|
|
|
}catch (Exception e){
|
|
@@ -142,11 +147,13 @@ public class VideoAdThompsonScorerV2 {
|
|
|
score = betaSampler(exp665Param.getOrDefault("alpha",1d)+Long.parseLong(statistic.getOrder()) ,
|
|
|
(exp665Param.getOrDefault("beta",100000d)+Long.parseLong(statistic.getExp())))/ (1+exp665Param.getOrDefault("beta_k",9d));
|
|
|
}
|
|
|
+ double s1 = score;
|
|
|
score=score*dto.getCpa()*dto.getBid1()*dto.getBid2();
|
|
|
item.setScore(score);
|
|
|
item.setScore_type(665);
|
|
|
|
|
|
Map<String, Object> ext = this.extMap(statistic, "665", dto.getCpa(), null, exp663Param.getOrDefault("alpha", 1d), exp663Param.getOrDefault("beta", 10000d), null);
|
|
|
+ ext.put("s1", s1);
|
|
|
item.setExt(ext);
|
|
|
}catch (Exception e){
|
|
|
log.error("svc=thompsonScorerByExp665 {}",gson.toJson(e.getStackTrace()));
|
|
@@ -204,12 +211,14 @@ public class VideoAdThompsonScorerV2 {
|
|
|
score = betaSampler(exp666Param.getOrDefault("alpha",1d),exp666Param.getOrDefault("beta",100000d));
|
|
|
}
|
|
|
}
|
|
|
+ double s1 = score;
|
|
|
score=score*dto.getCpa()*dto.getBid1()*dto.getBid2();
|
|
|
item.setScore(score);
|
|
|
item.setScore_type(666);
|
|
|
|
|
|
- Map<String, Object> ext = this.extMap(statistic, "665", dto.getCpa(), exp666Param.getOrDefault("viewThreshold",5000d), exp663Param.getOrDefault("alpha", 1d),
|
|
|
+ Map<String, Object> ext = this.extMap(statistic, "666", dto.getCpa(), exp666Param.getOrDefault("viewThreshold",5000d), exp663Param.getOrDefault("alpha", 1d),
|
|
|
exp663Param.getOrDefault("beta", 10000d), exp666Param.getOrDefault("beta_k",9d));
|
|
|
+ ext.put("s1", s1);
|
|
|
item.setExt(ext);
|
|
|
|
|
|
}catch (Exception e){
|