Kaynağa Gözat

feat:添加特征延迟验证脚本

zhaohaipeng 8 ay önce
ebeveyn
işleme
40a893a10e

+ 1 - 1
src/main/scala/com/aliyun/odps/spark/examples/makedata_ad/xgb/makedata_31_bucketDataPrint_20240821.scala

@@ -421,7 +421,7 @@ object makedata_31_bucketDataPrint_20240821 {
             val labelKey = labels.toString()
             val label = record.getString("ad_is_conversion")
             //6 拼接数据,保存。
-            (apptype, mid, cid, ts, headvideoid, label, allfeature, featureMap, allfeature.containsKey("weight_sum"))
+            (apptype, mid, cid, ts, headvideoid, label, allfeature, featureMap, !allfeature.containsKey("weight_sum"))
           }).filter {
             case (apptype, mid, cid, ts, headvideoid, label, allfeature, featureMap, flag) =>
               flag