Tensorflow 梯度下降实例
摘要:
# coding: utf-8 # #### 假设我们要最小化函数 $y=x^2$, 选择初始点 $x_0=5$ # #### 1. 学习率为1的时候,x在5和-5之间震荡。 # In[1]: import tensorflow as tf TRAINING_STEPS = 10 LEARNING_RATE = 1 x = tf.Variable(tf.constant(5, dt... 阅读全文
posted @ 2017-09-19 21:11 Maddock 阅读(931) 评论(0) 推荐(0)
浙公网安备 33010602011771号