2.2神经网络优化之学习率

学习率learn_rate:每次参数更新的幅度 参数的更新听从下面的公式 python #设损失函数loss=(w+1)^2,令w的初值为5.反向传播求最优w,即最小loss对应的w import tensorflow as tf #定义初始w为5 w = tf.Variable(tf.constant(5,dtype=tf.float32)) #定义损失函数为loss # b = tf.cons
相关文章
相关标签/搜索