|
@@ -67,7 +67,7 @@ public class ExtractFeature20250218 {
|
|
featureMap.put("b12_" + index + "_" + time, value);
|
|
featureMap.put("b12_" + index + "_" + time, value);
|
|
}
|
|
}
|
|
double rovn = Double.parseDouble(b12Feature.getOrDefault("rovn_" + time, "0").toString());
|
|
double rovn = Double.parseDouble(b12Feature.getOrDefault("rovn_" + time, "0").toString());
|
|
- double returnNUv = Double.parseDouble(b12Feature.getOrDefault("return_n_uv_"+time, "0").toString());
|
|
|
|
|
|
+ double returnNUv = Double.parseDouble(b12Feature.getOrDefault("return_n_uv_" + time, "0").toString());
|
|
featureMap.put("b12_rovn*log(r)_" + time, rovn * RankExtractorFeature_20240530.calLog(returnNUv));
|
|
featureMap.put("b12_rovn*log(r)_" + time, rovn * RankExtractorFeature_20240530.calLog(returnNUv));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -99,7 +99,7 @@ public class ExtractFeature20250218 {
|
|
featureMap.put("hour", ExtractorUtils.getHourByTimestamp(ts));
|
|
featureMap.put("hour", ExtractorUtils.getHourByTimestamp(ts));
|
|
featureMap.put("day_of_week", ExtractorUtils.getDayOfWeekByTimestamp(ts));
|
|
featureMap.put("day_of_week", ExtractorUtils.getDayOfWeekByTimestamp(ts));
|
|
|
|
|
|
- long createTs = Long.parseLong(videoFeature.getOrDefault("gmt_create_timestamp", "0").toString());
|
|
|
|
|
|
+ long createTs = Long.parseLong(videoFeature.getOrDefault("gmt_create_timestamp", "0").toString()) / 1000;
|
|
featureMap.put("create_ts_diff", ExtractorUtils.getDaysBetween(createTs, ts));
|
|
featureMap.put("create_ts_diff", ExtractorUtils.getDaysBetween(createTs, ts));
|
|
|
|
|
|
String date = LocalDateTime.ofInstant(Instant.ofEpochSecond(ts), ZoneId.systemDefault()).format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
|
|
String date = LocalDateTime.ofInstant(Instant.ofEpochSecond(ts), ZoneId.systemDefault()).format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
|
|
@@ -124,7 +124,7 @@ public class ExtractFeature20250218 {
|
|
featureMap.put("c1_" + index + "_" + time, value);
|
|
featureMap.put("c1_" + index + "_" + time, value);
|
|
}
|
|
}
|
|
double rovn = Double.parseDouble(c1Feature.getOrDefault("rovn_" + time, "0").toString());
|
|
double rovn = Double.parseDouble(c1Feature.getOrDefault("rovn_" + time, "0").toString());
|
|
- double returnNUv = Double.parseDouble(c1Feature.getOrDefault("return_1_uv_"+time, "0").toString());
|
|
|
|
|
|
+ double returnNUv = Double.parseDouble(c1Feature.getOrDefault("return_1_uv_" + time, "0").toString());
|
|
featureMap.put("c1_rovn*log(r)_" + time, rovn * RankExtractorFeature_20240530.calLog(returnNUv));
|
|
featureMap.put("c1_rovn*log(r)_" + time, rovn * RankExtractorFeature_20240530.calLog(returnNUv));
|
|
}
|
|
}
|
|
}
|
|
}
|