def save_best_acc(dir_path, best_acc, iteration):
    top_pkl_file = os.path.join(dir_path, 'top.pkl')
    top = {'best': best_acc, 'iteration': iteration}
    with open(top_pkl_file, 'wb') as f:
        pickle.dump(top, f)
def save_best_acc(dir_path, best_acc, iteration):
    top_pkl_file = os.path.join(dir_path, 'top.pkl')
    top = {'best': best_acc, 'iteration': iteration}
    with open(top_pkl_file, 'wb') as f:
        pickle.dump(top, f)