上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
摘要: import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_data# In[2]:#载入数据集mnist = input_data.read_data_sets("MNIST_data",one_hot= 阅读全文
posted @ 2018-11-23 19:27 rongye 阅读(267) 评论(0) 推荐(0) 编辑
摘要: #C:\Users\mxf\venv\Scriptsimport tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_data# In[2]:# 载入数据集mnist = input_data.read_data 阅读全文
posted @ 2018-11-23 19:08 rongye 阅读(486) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_data#载入数据集mnist = input_data.read_data_sets("MNIST_data",one_hot=True)#每个 阅读全文
posted @ 2018-11-23 13:56 rongye 阅读(2359) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-23 13:43 rongye 阅读(192) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_data# 载入数据集mnist = input_data.read_data_sets("MNIST_data", one_hot=True)# 阅读全文
posted @ 2018-11-22 21:31 rongye 阅读(4579) 评论(0) 推荐(0) 编辑
摘要: # coding: utf-8# In[2]:import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_data# In[3]:#载入数据集mnist = input_data.read_data_set 阅读全文
posted @ 2018-11-22 17:38 rongye 阅读(404) 评论(0) 推荐(0) 编辑
摘要: # coding: utf-8# In[1]:import tensorflow as tfimport numpy as npimport matplotlib.pyplot as plt# In[6]:#使用numpy生成200个随机点x_data = np.linspace(-0.5,0.5, 阅读全文
posted @ 2018-11-22 17:05 rongye 阅读(359) 评论(0) 推荐(0) 编辑
摘要: #示例import numpy as npimport tensorflow as tfx_data = np.random.rand(100)y_data = .1 * x_data +.2## 构造一个线性模型优化器#优化 $y = kx+b$#待优化的参数b = tf.Variable(0.) 阅读全文
posted @ 2018-11-22 16:11 rongye 阅读(255) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tfc1 = tf.constant([[3,3]])c2 = tf.constant([[3],[2]])product = tf.matmul(c1 , c2)with tf.Session() as sess: reslut = sess.run(pr 阅读全文
posted @ 2018-11-22 16:10 rongye 阅读(241) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf# print('haha')# a = tf.add(2,3)# print(a)# sess = tf.Session()# print(sess.run(a))# sess.close()# x = 2# y = 3# op1 = tf.add(x,y)# op2 = tf.multiply(x,y)# op3 = tf.pow(op2,op1)... 阅读全文
posted @ 2018-11-21 21:09 rongye 阅读(169) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页