![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
bytes9
这个作者很懒,什么都没留下…
展开
-
Estimator vs Keras (转)
" The Estimators API is used for training models for distributed environments. This targets industry use cases such as distributed training on large datasets that can export a model for production." ...转载 2019-05-10 09:38:30 · 956 阅读 · 0 评论 -
Operation 与 Tensor
Tensor代表操作的输出结果 ,Operation表示一个操作, c = tf.matmul(a, b) c是Tensor对象,还是Operation对象? 这里c应该是Tensor对象。 有些操作没有返回值,此时该对象就是一个Operation对象。如 optimizer = tf.train.AdamOptimizer(LEARNING_RATE).minimize(self...原创 2019-05-24 11:48:57 · 374 阅读 · 0 评论 -
tensorflow 之tensor的理解
tensorflow是一个机器学习库. tensorflow 从名字翻译过来是'张量流'.计算(操作)是一个加工过程,输入张量,经过加工后得到另一个输出张量.复杂的计算可以看作是一系列加工流,即输入数据,经过一系列加工流后输出结果张量. 每一个操作(加工)相互连接,构成一个有向图. A Tensor is a symbolic handle to one of the outputs of ...原创 2019-05-22 11:24:22 · 502 阅读 · 0 评论 -
tensorflow为何采用图(Graph)方式之我的理解
图可并行处理 方便梯度计算 数据流是一种用于并行计算的常用编程模型。在数据流图中,节点表示计算单元,边缘表示计算使用或产生的数据。例如,在 TensorFlow 图中,tf.matmul 操作对应于单个节点,该节点具有两个传入边(要相乘的矩阵)和一个传出边(乘法结果)。 在执行您的程序时,数据流可以为 TensorFlow 提供多项优势: 并行处理。 通过使用明确的边缘来表示操作之间...原创 2019-05-23 10:57:47 · 1028 阅读 · 2 评论 -
训练网络时一定记得将数据归一化!!!
没归一化,训练误差在4-5之间,而例子代码误差在0.4-0.5之间。找了很久发现,例子代码有 from sklearn.preprocessing import StandardScaler scaler = StandardScaler() scaled_housing_data = scaler.fit_transform(housing.data) ...原创 2019-06-22 15:48:23 · 1967 阅读 · 0 评论 -
tensorflow之variable
tensorflow中的variable令人迷糊。它与python的变量是何关系?请看文档的定义。 A variable maintains state in the graph across calls to run(). You add a variable to the graph by constructing an instance of the class Variable. 在g...原创 2019-07-12 08:23:33 · 404 阅读 · 0 评论