소스 검색

feat:添加日志

zhaohaipeng 11 달 전
부모
커밋
7a56cc6719

+ 1 - 5
ad-engine-commons/src/main/java/com/tzld/piaoquan/ad/engine/commons/score/model/CvrAdjustingModel.java

@@ -79,15 +79,11 @@ public class CvrAdjustingModel extends Model {
             double rowKey = cell.getRowKey();
             double columnKey = cell.getColumnKey();
             if (rowKey <= score & score < columnKey) {
+                LOGGER.info("score {} in {} - {} , value is {}", score, rowKey, columnKey, cell.getValue());
                 return cell.getValue();
             }
         }
 
         return 1.0;
     }
-
-    public static void main(String[] args) {
-        System.out.println(0.5 / 0.0);
-    }
-
 }

+ 2 - 0
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/score/VlogAdCvrLRScorer.java

@@ -140,7 +140,9 @@ public class VlogAdCvrLRScorer extends BaseLRModelScorer {
                 // CVR校准
                 Double coef = adjustingModel.getAdjustingCoefficien(pro);
                 if (Objects.nonNull(coef)) {
+                    LOGGER.info("[VlogAdCvrLRScorer.cvr adjusting] before: {}", pro);
                     pro = pro / coef;
+                    LOGGER.info("[VlogAdCvrLRScorer.cvr adjusting] after: {}, coef: {}", pro, coef);
                 }
 
             } catch (Exception e) {