07 2019 档案

摘要:class Fab(object): def __init__(self ,max ): self.max =max self.n =0 self.a=0 self.b =1 def __iter__(self): #迭代器,表示为容器,相当于声明 return self def __next__( 阅读全文
posted @ 2019-07-30 13:26 tangjunjun 阅读(455) 评论(0) 推荐(0) 编辑
摘要:m21文件代码 m22文件代码 阅读全文
posted @ 2019-07-28 22:22 tangjunjun 阅读(1546) 评论(0) 推荐(0) 编辑
摘要:import cv2 as cvimport numpy as npimg=cv.imread('learn.jpg',cv.IMREAD_GRAYSCALE)cv.imshow('first image',img)img_size=img.shapeprint(img_size)imgkernel=np.array([[-2,-1,0], [-1, 1,1]... 阅读全文
posted @ 2019-07-25 11:57 tangjunjun 阅读(2184) 评论(0) 推荐(0) 编辑
摘要:import matplotlib.pyplot as pltimport cv2 as cva=cv.imread('learn.jpg')cv.imshow('learn',a)fig=plt.figure(1) #新建绘图窗口b=fig.add_subplot(221) #选择画布第一个b.imshow(a,cmap=plt.cm.gray) #读图cv.imshow('lear... 阅读全文
posted @ 2019-07-23 09:49 tangjunjun 阅读(1876) 评论(0) 推荐(1) 编辑
摘要:import numpy as npimport osa=bytearray(os.urandom(27))# for i in range(21):# print(a[i])a=np.array(a)print(a)b=a.reshape((-1,3))print(b)c=bytearray(b)print(c)for i in range(27): print(a[i]) ... 阅读全文
posted @ 2019-07-22 16:23 tangjunjun 阅读(522) 评论(0) 推荐(0) 编辑
摘要:文章内容来自:https://blog.csdn.net/tsyccnh/article/details/79163834 关于交叉熵在loss函数中使用的理解交叉熵(cross entropy)是深度学习中常用的一个概念,一般用来求目标与预测值之间的差距。以前做一些分类问题的时候,没有过多的注意, 阅读全文
posted @ 2019-07-14 23:15 tangjunjun 阅读(728) 评论(0) 推荐(0) 编辑
摘要:import numpy as npimport matplotlib.pyplot as pltx = np.linspace(-10, 10, 1000)a = np.cos(x)b = a + np.cos(3 * x)# d = np.log(x)c = b + np.cos(7 * x)d = c - np.cos(10 * x)plt.subplot(2, 2, 1)plt.plo... 阅读全文
posted @ 2019-07-07 23:09 tangjunjun 阅读(3058) 评论(0) 推荐(0) 编辑

https://rpc.cnblogs.com/metaweblog/tangjunjun
点击右上角即可分享
微信分享提示