Browse Source

predict data process debug

liqian 3 years ago
parent
commit
633d288917
1 changed files with 3 additions and 1 deletions
  1. 3 1
      rov_train.py

+ 3 - 1
rov_train.py

@@ -70,6 +70,8 @@ def process_predict_data(filename):
     filtered_videos = [str(item) for item in filter_video_status(video_ids=video_id_list)]
     data = data.loc[data['videoid'].isin(filtered_videos)]
 
+    video_id_final = data['videoid']
+
     # 获取x
     drop_columns = ['videoid', 'dt', 'futre7dayreturn', 'videotags', 'words_without_tags']
     x = data.drop(columns=drop_columns)
@@ -85,7 +87,7 @@ def process_predict_data(filename):
     # 缺失值填充为0
     x.fillna(0)
 
-    return x, filtered_videos
+    return x, video_id_final
 
 
 def train(x, y, features):