TensorFlow-方法train.exponential_decay()
来源:互联网 发布:网络大电影网购机器人 编辑:程序博客网 时间:2024/05/18 20:04
这个方法提供指数级衰减,用来让模型在训练后期,变化的精度高一些
When training a model, it is often recommended to lower the learning rate asthe training progresses.
This function applies an exponential decay functionto a provided initial learning rate. It requires a
global_step
value tocompute the decayed learning rate. You can just pass a TensorFlow variablethat
you increment at each training step.
exponential_decay( learning_rate, global_step, decay_steps, decay_rate, staircase=False, name=None)
公式:
decayed_learning_rate = learning_rate * decay_rate ^ (global_step / decay_steps)
If the argument staircase
is True
, then global_step / decay_steps
is aninteger division and the decayed learning rate follows a staircase function.如果staircase是True,那么 global_step/decay_steps会是整数。
例子:
learning_rate = 0.1
decay_rate = 0.96
decay_steps = 1000
global_step = 1
rate = 0.0999959179
///////////////
learning_rate = 0.1
decay_rate = 0.96
decay_steps = 1000
global_step = 900
rate = 0.0963926921
1 0
- TensorFlow-方法train.exponential_decay()
- TensorFlow中tf.train.exponential_decay的用法
- Tensorflow中tf.train.exponential_decay函数(指数衰减法)
- Tensorflow中tf.train.exponential_decay函数(指数衰减法)
- tf.train.exponential_decay 用法
- tf.train.exponential_decay()
- tf.train.exponential_decay的用法
- tf.train.exponential_decay的用法
- 举例说明函数tf.train.exponential_decay用法
- tebsorflow学习——tf.train.ExponentialMovingAverage与tf.train.exponential_decay
- TensorFlow Train篇
- Tensorflow:tf.train.SyncReplicasOptimizer
- tensorflow-001-Train
- tensorflow tf.train.SummaryWriter()
- 【Tensorflow】tf.train.AdamOptimizer函数
- tensorflow关于tf.train.Saver()
- 关于Tensorflow中的tf.train.batch函数
- tensorflow(6) mnist.train.next_batch()函数解析
- postman测试工具
- Android只有一个RadioButton点击后取消选中
- 【Docker学习】之 初识
- 用两个栈实现队列
- C++中break和continue的用法
- TensorFlow-方法train.exponential_decay()
- i&1的用法
- Element type is invalid: expected a string (for built-in components) or a class/function (for compos
- Android混淆proguard-rules.pro proguard-project.txt
- 阿里云ecs,linux64位搭建javaweb开发环境,安装mysql5.7.18
- 排序9:计数排序
- 杭电oj(java版)—— 1020 Encoding
- 三子棋游戏C语言模拟实现
- Android 使用内容解析者往联系人数据库中插入数据