• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






天生自然

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  吴裕雄--天生自然Tensorflow学习笔记

上一页 1 2 3 4 5

 
吴裕雄 python深度学习与实践(16)
摘要:import struct import numpy as np import matplotlib.pyplot as plt dateMat = np.ones((7,7)) kernel = np.array([[2,1,1],[3,0,1],[1,1,0]]) def convolve(dateMat,kernel): m,n = dateMat.shape km... 阅读全文
posted @ 2019-03-18 21:44 吴裕雄 阅读(313) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(15)
摘要:import tensorflow as tf import tensorflow.examples.tutorials.mnist.input_data as input_data mnist = input_data.read_data_sets("D:\\F\\TensorFlow_deep_learn\\MNIST\\", one_hot=True) x_data = tf.plac... 阅读全文
posted @ 2019-03-17 20:54 吴裕雄 阅读(249) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(14)
摘要:import numpy as np import tensorflow as tf import matplotlib.pyplot as plt threshold = 1.0e-2 x1_data = np.random.randn(100).astype(np.float32) x2_data = np.random.randn(100).astype(np.float32) y_da... 阅读全文
posted @ 2019-03-17 20:51 吴裕雄 阅读(295) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(13)
摘要:......................... ...................................................... 阅读全文
posted @ 2019-03-16 15:38 吴裕雄 阅读(358) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(12)
摘要:import tensorflow as tf q = tf.FIFOQueue(1000,"float32") counter = tf.Variable(0.0) add_op = tf.assign_add(counter, tf.constant(1.0)) enqueueData_op = q.enqueue(counter) sess = tf.Session() qr = tf... 阅读全文
posted @ 2019-02-10 08:27 吴裕雄 阅读(290) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(11)
摘要:import numpy as np from matplotlib import pyplot as plt A = np.array([[5],[4]]) C = np.array([[4],[6]]) B = A.T.dot(C) AA = np.linalg.inv(A.T.dot(A)) l=AA.dot(B) P=A.dot(l) x=np.linspace(-2,2,10) ... 阅读全文
posted @ 2019-02-09 14:11 吴裕雄 阅读(264) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(10)
摘要:import tensorflow as tf input1 = tf.constant(1) print(input1) input2 = tf.Variable(2,tf.int32) print(input2) input2 = input1 sess = tf.Session() print(sess.run(input2)) import tensorflow as tf... 阅读全文
posted @ 2019-02-08 18:12 吴裕雄 阅读(278) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(9)
摘要:import numpy as np import tensorflow as tf inputX = np.random.rand(100) inputY = np.multiply(3,inputX) + 1 x = tf.placeholder("float32") y_ = tf.placeholder("float32") weight = tf.Variable(0.25) ... 阅读全文
posted @ 2019-02-08 13:03 吴裕雄 阅读(248) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(8)
摘要:import cv2 import numpy as np img = cv2.imread("G:\\MyLearning\\TensorFlow_deep_learn\\data\\lena.jpg") img_hsv = cv2.cvtColor(img,cv2.COLOR_BGR2HSV) turn_green_hsv = img_hsv.copy() turn_green_hsv[:... 阅读全文
posted @ 2019-02-08 11:38 吴裕雄 阅读(315) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(7)
摘要:import cv2 import numpy as np img = np.mat(np.zeros((300,300))) cv2.imshow("test",img) cv2.waitKey(0) import cv2 import numpy as np img = np.mat(np.zeros((300,300),dtype=np.uint8)) cv2.imshow("te... 阅读全文
posted @ 2019-02-07 22:08 吴裕雄 阅读(302) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(6)
摘要:from pylab import * import pandas as pd import matplotlib.pyplot as plot import numpy as np filePath = ("G:\\MyLearning\\TensorFlow_deep_learn\\data\\dataTest.csv") dataFile = pd.read_csv(filePath,h... 阅读全文
posted @ 2019-02-07 13:28 吴裕雄 阅读(385) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(5)
摘要:import numpy as np data = np.mat([[1,200,105,3,False], [2,165,80,2,False], [3,184.5,120,2,False], [4,116,70.8,1,False], [5,270,150,4,True]... 阅读全文
posted @ 2019-02-07 11:04 吴裕雄 阅读(459) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(4)
摘要:import numpy,math def softmax(inMatrix): m,n = numpy.shape(inMatrix) outMatrix = numpy.mat(numpy.zeros((m,n))) soft_sum = 0 for idx in range(0,n): outMatrix[0,idx] = math.exp... 阅读全文
posted @ 2019-02-06 10:37 吴裕雄 阅读(254) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(3)
摘要:import threading, time def doWaiting(): print('start waiting:', time.strftime('%S')) time.sleep(3) print('stop waiting', time.strftime('%S')) thread1 = threading.Thread(target = doWaitin... 阅读全文
posted @ 2019-02-05 13:04 吴裕雄 阅读(158) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(2)
摘要:#coding = utf8 import threading,time,random count = 0 class MyThread (threading.Thread): def __init__(self,lock,threadName): super(MyThread,self).__init__(name = threadName) sel... 阅读全文
posted @ 2019-02-05 12:59 吴裕雄 阅读(139) 评论(0) 推荐(0)
吴裕雄 python深度学习与实践(1)
摘要:#coding = utf8 import threading,time count = 0 class MyThread(threading.Thread): def __init__(self,threadName): super(MyThread,self).__init__(name = threadName) def run(self): ... 阅读全文
posted @ 2019-02-05 12:43 吴裕雄 阅读(227) 评论(0) 推荐(0)
 

上一页 1 2 3 4 5