From 78f82bd44dc1546ba2d427c07e80b58d45a47279 Mon Sep 17 00:00:00 2001 From: malin10 Date: Mon, 1 Jun 2020 16:09:00 +0800 Subject: [PATCH] fix code style --- core/model.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/model.py b/core/model.py index c5fc33fd..8472d992 100755 --- a/core/model.py +++ b/core/model.py @@ -150,9 +150,11 @@ class Model(object): def optimizer(self): opt_name = envs.get_global_env("hyper_parameters.optimizer.class") - opt_lr = envs.get_global_env("hyper_parameters.optimizer.learning_rate") - opt_strategy = envs.get_global_env("hyper_parameters.optimizer.strategy") - + opt_lr = envs.get_global_env( + "hyper_parameters.optimizer.learning_rate") + opt_strategy = envs.get_global_env( + "hyper_parameters.optimizer.strategy") + return self._build_optimizer(opt_name, opt_lr, opt_strategy) def input_data(self, is_infer=False, **kwargs): -- GitLab