|
@@ -140,12 +140,14 @@ public class VideoAdThompsonModel extends Model{
|
|
|
adActionFeature=this.adActionFeatureMap.getOrDefault(item.getAdId(), new AdActionFeature());
|
|
|
alpha_score = adActionFeature.getAdConversion() + this.alpha_conv;
|
|
|
beta_score = this.beta_conversion + adActionFeature.getAdView() - adActionFeature.getAdConversion();
|
|
|
+ item.setScore_type(1);
|
|
|
}else {
|
|
|
AdActionFeature videoAdFeature=this.videoAdActionFeatureMap.getOrDefault(item.getVideoId(),new AdActionFeature());
|
|
|
double k=(videoAdFeature.getAdConversion()+videoAdFeature.getAdView())/1000d;
|
|
|
double alpha=(videoAdFeature.getAdConversion())/k;
|
|
|
alpha_score =adActionFeature.getAdConversion() + alpha;
|
|
|
beta_score = 1000d + adActionFeature.getAdView() - adActionFeature.getAdConversion();
|
|
|
+ item.setScore_type(2);
|
|
|
}
|
|
|
|
|
|
return this.betaSampler(alpha_score, beta_score);
|