摘要: 用卷积神经网络实现对手写数字的识别,代码来自莫烦TensorFlow教程。 import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_ 阅读全文
posted @ 2020-08-06 20:17 Picassooo 阅读(163) 评论(0) 推荐(0)
摘要: 通过TensorFlow用神经网络实现对二次函数的拟合。代码来自莫烦TensorFlow教程。 1 import tensorflow as tf 2 import numpy as np 3 4 def add_layer(inputs, in_size, out_size, activation 阅读全文
posted @ 2020-08-06 20:05 Picassooo 阅读(990) 评论(0) 推荐(0)
摘要: 1. TensorFlow核心理解 TensorFlow本质上是一张计算图,数据在图上计算和流动。 写TensorFlow程序,需要: 构建一张计算图; 运行会话,执行图中的运算。 2. TensorFlow的几个概念 图(Graph):用来表示计算任务,也就我们要做的一些操作。 会话(Sessio 阅读全文
posted @ 2020-08-06 10:12 Picassooo 阅读(765) 评论(0) 推荐(0)