From 77d7659ed70589676ec260d7ed3a9b06e9bd3225 Mon Sep 17 00:00:00 2001 From: xiaoye-hua Date: Sun, 16 Aug 2020 07:55:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=AD=A37.3=E7=9A=84=E7=AC=94?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/chapter07_optimization/7.3_minibatch-sgd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/chapter07_optimization/7.3_minibatch-sgd.md b/docs/chapter07_optimization/7.3_minibatch-sgd.md index 3832c48..fd18478 100644 --- a/docs/chapter07_optimization/7.3_minibatch-sgd.md +++ b/docs/chapter07_optimization/7.3_minibatch-sgd.md @@ -179,7 +179,7 @@ def train_tensorflow2_ch7(trainer_name, trainer_hyperparams, features, labels, ``` 使用Tensorflow2重复上一个实验。 ``` python -train_pytorch_ch7(optim.SGD, {"lr": 0.05}, features, labels, 10) +train_tensorflow2_ch7('trainer', {'learning_rate': 0.05}, features, labels, 10) ``` 输出: ```