Browse Source

str rov model

丁云鹏 1 year ago
parent
commit
88d3bc8c7c

+ 4 - 4
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/predict/model/threshold/ScoreV2ThresholdPredictModel.java

@@ -85,11 +85,11 @@ public class ScoreV2ThresholdPredictModel extends ThresholdPredictModel {
 
         int adPredict;
         if (maxItem != null && maxItem.getScore() < threshold) {
-            // If final score is below threshold, show the ad
-            adPredict = 2;
-        } else {
-            // Otherwise, do not show the ad
+            // If final score is below threshold, do not show the ad
             adPredict = 1;
+        } else {
+            // Otherwise, show the ad
+            adPredict = 2;
         }
         Map<String, Object> result = new HashMap<>();
         result.put("threshold", threshold);

+ 3 - 3
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/score/VlogMergeBreakScorer.java

@@ -36,9 +36,9 @@ public class VlogMergeBreakScorer extends BaseLRModelScorer {
             double str = item.getStr();
             double ros = item.getRos();
 
-            double a = 0.7;
-            double b = 1;
-            double c = 0.3;
+            double a = 0.2;
+            double b = 1.0;
+            double c = 1.0;
 
             BigDecimal ctrCvr = new BigDecimal(Math.pow(70 * ctr * cvr, a));
             BigDecimal strRos = new BigDecimal(Math.pow(str * ros, b));