Commit 171a5ce0 authored by 张彦钊's avatar 张彦钊

change test file

parent 497359ca
...@@ -12,6 +12,8 @@ from datetime import date, timedelta ...@@ -12,6 +12,8 @@ from datetime import date, timedelta
import tensorflow as tf import tensorflow as tf
import subprocess import subprocess
import time import time
import glob
import random
#################### CMD Arguments #################### #################### CMD Arguments ####################
FLAGS = tf.app.flags.FLAGS FLAGS = tf.app.flags.FLAGS
...@@ -297,8 +299,7 @@ def main(_): ...@@ -297,8 +299,7 @@ def main(_):
FLAGS.dt_dir = (date.today() + timedelta(-1)).strftime('%Y%m%d') FLAGS.dt_dir = (date.today() + timedelta(-1)).strftime('%Y%m%d')
FLAGS.model_dir = FLAGS.model_dir + FLAGS.dt_dir FLAGS.model_dir = FLAGS.model_dir + FLAGS.dt_dir
#FLAGS.data_dir = FLAGS.data_dir + FLAGS.dt_dir #FLAGS.data_dir = FLAGS.data_dir + FLAGS.dt_dir
import glob
import random
tr_files = glob.glob("/home/gmuser/test/part*") tr_files = glob.glob("/home/gmuser/test/part*")
random.shuffle(tr_files) random.shuffle(tr_files)
print("tr_files:", tr_files) print("tr_files:", tr_files)
...@@ -369,6 +370,7 @@ def get_filename(dir_in): ...@@ -369,6 +370,7 @@ def get_filename(dir_in):
if __name__ == "__main__": if __name__ == "__main__":
b = time.time() b = time.time()
a = "export CLASSPATH='$(hadoop classpath --glob)'" a = "export CLASSPATH='$(hadoop classpath --glob)'"
print(a)
os.system(a) os.system(a)
path = "hdfs://172.16.32.4:8020/strategy/esmm/" path = "hdfs://172.16.32.4:8020/strategy/esmm/"
tf.logging.set_verbosity(tf.logging.INFO) tf.logging.set_verbosity(tf.logging.INFO)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment