Skip to content

Commit 098aa4e

Browse files
authored
polish doc of paddle.optimizer.lr.PiecewiseDecay (#4040)
1 parent 2f9bdde commit 098aa4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/api/paddle/optimizer/lr/PiecewiseDecay_cn.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ PiecewiseDecay
66
.. py:class:: paddle.optimizer.lr.PiecewiseDecay(boundaries, values, last_epoch=-1, verbose=False)
77
88
9-
该接口提供分段设置学习率的策略。
9+
该接口提供分段设置学习率的策略。`boundaries` 表示学习率变化的边界步数,对应epoch的值,`values` 表示学习率变化的值。
1010

1111
过程可以描述如下:
1212

1313
.. code-block:: text
1414
15-
boundaries = [100, 200]
16-
values = [1.0, 0.5, 0.1]
15+
boundaries = [100, 200] # epoch仅代表当前步数,无实义
16+
values = [1.0, 0.5, 0.1] # 在第[0,100), [100,200), [200,+∞)分别对应value中学习率的值
1717
1818
learning_rate = 1.0 if epoch < 100
1919
learning_rate = 0.5 if 100 <= epoch < 200

0 commit comments

Comments
 (0)