提交 7af1ad28 编写于 作者: Z zhangxuefei

update location of log_file.txt

上级 5adf6157
...@@ -63,7 +63,7 @@ class BaseTuningStrategy(object): ...@@ -63,7 +63,7 @@ class BaseTuningStrategy(object):
self._output_dir = "output_" + time_str self._output_dir = "output_" + time_str
else: else:
self._output_dir = output_dir self._output_dir = output_dir
self.writer = SummaryWriter(logdir=self._output_dir + '/tb_paddle') self.writer = SummaryWriter(logdir=self._output_dir + '/visualization')
@property @property
def thread(self): def thread(self):
......
...@@ -184,7 +184,7 @@ class AutoFineTuneCommand(BaseCommand): ...@@ -184,7 +184,7 @@ class AutoFineTuneCommand(BaseCommand):
run_round_cnt = run_round_cnt + 1 run_round_cnt = run_round_cnt + 1
print("PaddleHub Autofinetune ends.") print("PaddleHub Autofinetune ends.")
with open("./log_file.txt", "w") as f: with open(autoft._output_dir + "/log_file.txt", "w") as f:
best_hparams = evaluator.convert_params(autoft.get_best_hparams()) best_hparams = evaluator.convert_params(autoft.get_best_hparams())
print("The final best hyperparameters:") print("The final best hyperparameters:")
f.write("The final best hyperparameters:\n") f.write("The final best hyperparameters:\n")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册