tensorflow 学习 softmax Regression 识别手写数字
下面代码是来自 tensorflow 实战一书,
主要包括三个部分:
1.构建模型 y=w*x+b
2.构建损失函数模型-交叉熵
3.构建查找最优值方法–梯度下降
#!/user/bin/env python
import tensorflow as tf
sess = tf.InteractiveSession()
# x is feature value
x = tf.plac...
原创
2018-09-14 10:21:10 ·
134 阅读 ·
0 评论