Browse Source

分析代码

罗俊辉 1 year ago
parent
commit
2b8e54032a
1 changed files with 2 additions and 4 deletions
  1. 2 4
      process_data.py

+ 2 - 4
process_data.py

@@ -118,11 +118,9 @@ if __name__ == "__main__":
     if flag == 1:
         t = "train"
         D = DataProcessor(flag=t)
+        D.producer(dt="whole")
     else:
         t = "predict"
-
-    if flag == 2:
+        D = DataProcessor(flag=t)
         for d in range(16, 22):
             D.producer(d)
-    else:
-        D.producer(dt="whole")