jch 1 день назад
Родитель
Сommit
1d0da0f641

+ 0 - 4
src/main/scala/com/aliyun/odps/spark/examples/myUtils/FeatureTransformV2.java

@@ -170,10 +170,6 @@ public class FeatureTransformV2 {
         }
         featMap.put(prefix + "@total_time", FeatureUtils.log1(Double.parseDouble(videoInfo.getOrDefault("total_time", "0")), log1Scale));
         featMap.put(prefix + "@bit_rate", FeatureUtils.log1(Double.parseDouble(videoInfo.getOrDefault("bit_rate", "0")), log1Scale));
-        if (videoInfo.containsKey("width") && videoInfo.containsKey("height")) {
-            String resolution = String.format("%s@%s@%s_%s", prefix, "wh", videoInfo.get("width"), videoInfo.get("height"));
-            featMap.put(resolution, 1.0);
-        }
         String resolution = FeatureUtils.getResolution(videoInfo);
         if (!resolution.isEmpty()) {
             String resKey = String.format("%s@%s@%s", prefix, "res", resolution);