|
@@ -6,6 +6,8 @@ import com.tzld.piaoquan.ad.engine.commons.score.ScoreParam;
|
|
import com.tzld.piaoquan.ad.engine.service.score.dto.AdPlatformCreativeDTO;
|
|
import com.tzld.piaoquan.ad.engine.service.score.dto.AdPlatformCreativeDTO;
|
|
import com.tzld.piaoquan.recommend.feature.domain.ad.base.AdRankItem;
|
|
import com.tzld.piaoquan.recommend.feature.domain.ad.base.AdRankItem;
|
|
import org.apache.commons.math3.distribution.BetaDistribution;
|
|
import org.apache.commons.math3.distribution.BetaDistribution;
|
|
|
|
+import org.slf4j.Logger;
|
|
|
|
+import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
@@ -14,6 +16,7 @@ import java.util.*;
|
|
|
|
|
|
@Component
|
|
@Component
|
|
public class VideoAdThompsonScorerV2 {
|
|
public class VideoAdThompsonScorerV2 {
|
|
|
|
+ Logger log = LoggerFactory.getLogger(VideoAdThompsonScorerV2.class);
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private AlgorithmRedisHelper redisHelper;
|
|
private AlgorithmRedisHelper redisHelper;
|
|
@@ -59,7 +62,7 @@ public class VideoAdThompsonScorerV2 {
|
|
item.setScore(score);
|
|
item.setScore(score);
|
|
result.add(item);
|
|
result.add(item);
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- e.printStackTrace();
|
|
|
|
|
|
+ log.error("svc=thompsonScorerByExp663 {}",gson.toJson(e.getStackTrace()));
|
|
}
|
|
}
|
|
i++;
|
|
i++;
|
|
}
|
|
}
|
|
@@ -97,7 +100,7 @@ public class VideoAdThompsonScorerV2 {
|
|
item.setScore(score);
|
|
item.setScore(score);
|
|
result.add(item);
|
|
result.add(item);
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- e.printStackTrace();
|
|
|
|
|
|
+ log.error("svc=thompsonScorerByExp664 {}",gson.toJson(e.getStackTrace()));
|
|
}
|
|
}
|
|
i++;
|
|
i++;
|
|
}
|
|
}
|
|
@@ -134,7 +137,7 @@ public class VideoAdThompsonScorerV2 {
|
|
item.setScore(score);
|
|
item.setScore(score);
|
|
result.add(item);
|
|
result.add(item);
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- e.printStackTrace();
|
|
|
|
|
|
+ log.error("svc=thompsonScorerByExp665 {}",gson.toJson(e.getStackTrace()));
|
|
}
|
|
}
|
|
i++;
|
|
i++;
|
|
}
|
|
}
|
|
@@ -189,6 +192,7 @@ public class VideoAdThompsonScorerV2 {
|
|
item.setScore(score);
|
|
item.setScore(score);
|
|
result.add(item);
|
|
result.add(item);
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
|
|
+ log.error("svc=thompsonScorerByExp666 {}",gson.toJson(e.getStackTrace()));
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
i++;
|
|
i++;
|