|
@@ -290,8 +290,8 @@ public class VideoAdThompsonScorerV2 {
|
|
|
Double alpha = expParam.getOrDefault("alpha", defaultAlpha);
|
|
|
Double beta = expParam.getOrDefault("beta", defaultBeta);
|
|
|
|
|
|
- double order = creativeStatistic.getDoubleOrder() + alpha;
|
|
|
- double exp = creativeStatistic.getDoubleExp() + beta;
|
|
|
+ double order = creativeStatistic.parseOrderToDouble() + alpha;
|
|
|
+ double exp = creativeStatistic.parseExpToDouble() + beta;
|
|
|
|
|
|
if (order == 0 || exp == 0) {
|
|
|
return 0.0;
|
|
@@ -343,7 +343,7 @@ public class VideoAdThompsonScorerV2 {
|
|
|
return exp;
|
|
|
}
|
|
|
|
|
|
- public Double getDoubleExp() {
|
|
|
+ public Double parseExpToDouble() {
|
|
|
if (StringUtils.isBlank(exp)) {
|
|
|
return 0.0;
|
|
|
}
|
|
@@ -361,7 +361,7 @@ public class VideoAdThompsonScorerV2 {
|
|
|
return click;
|
|
|
}
|
|
|
|
|
|
- public Double getDoubleClick(){
|
|
|
+ public Double parseClickToDouble(){
|
|
|
if (StringUtils.isBlank(click)){
|
|
|
return 0.0;
|
|
|
}
|
|
@@ -379,7 +379,7 @@ public class VideoAdThompsonScorerV2 {
|
|
|
return order;
|
|
|
}
|
|
|
|
|
|
- public Double getDoubleOrder(){
|
|
|
+ public Double parseOrderToDouble(){
|
|
|
if (StringUtils.isBlank(order)){
|
|
|
return 0.0;
|
|
|
}
|
|
@@ -397,7 +397,7 @@ public class VideoAdThompsonScorerV2 {
|
|
|
return cpa;
|
|
|
}
|
|
|
|
|
|
- public Double getDoubleCpa() {
|
|
|
+ public Double parseCpaToDouble() {
|
|
|
if (StringUtils.isBlank(cpa)) {
|
|
|
return 0.0;
|
|
|
}
|