(mid, reward)
dump reward
dump reward
dump reward
def dump_reward(mid, reward):
    """
        dump reward
    """
    filename = os.path.join(FLAGS.logdir, "rewards", "%d.pkl" % mid)
    pickle.dump(reward, open(filename, "wb"))
def dump_reward ( mid , reward ) : filename = os . path . join ( FLAGS . logdir , "rewards" , "%d.pkl" % mid ) pickle . dump ( reward , open ( filename , "wb" ) )