自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 收藏
  • 关注

原创 深度学习 GAN 原理 代码

GAN生成式对抗网络GAN的基本操作原理公式代码GAN的基本操作VAE效果不行,相比GAN网络会更大generator 由component一个个生成discriminator 判断image好坏GAN比VAE产生的人脸更清晰原理公式代码

2020-10-18 15:46:38 185

原创 python 基础知识 Pandas 数据排序

python 数据排序排序.sort_index() 根据索引排序 默认升序.sort_values() 根据数值排序 默认升序NaN统一放在排序末尾统计分析函数.describe排序.sort_index() 根据索引排序 默认升序import pandas as pda=pd.DataFrame(np.arange(20),index=['b','c','a','d']a.sort_index() //默认0轴排序a.sort_index(axis=1,ascending=False)

2020-10-17 10:39:02 886

原创 python 基础知识 Pandas库

python PandasPandas 扩展数据类型 关注数据应用表达 数据与索引之间的关系Series 数据与索引组成创建SeriesSeries基本操作DataFrames 表格型 行和列索引Pandas 扩展数据类型 关注数据应用表达 数据与索引之间的关系Series 数据与索引组成import pandas as pda=pd.Series([9,8,7,6])0 91 82 73 6dtype: int64 //numpy中的数据类型

2020-10-16 22:11:03 206

原创 python 基础知识 Matplotlib pyplot

python Matplotlib pyplotpyplot函数饼图绘制直方图绘制极坐标图的绘制散点图绘制pyplot函数plt.psd()plt.specgram()plt.cohere()plt.scatter() //散点图plt.step()plt.hist() //直方图plt.vlines()plt.plot_date()//官网可以找到饼图绘制import matplotlib.pyplot as pltlabels='Frogs','Hogs','Dogs'

2020-10-16 21:38:49 200

原创 python 基础知识 Matplotlib

Python Matplotlibmatplotlib 数据可视化pyplot 的中文显示方法pyplot 的文本显示函数matplotlib 数据可视化import matplotlib.pyplot as pltplt.plot([3,1,4,5,2])plt.ylabel('grade')plt.show()plt.savefig('test',dpi=600) //PNG文件 dpi修改输出质量plt.plot([0,2,4,6,8],[3,1,4,5,2])plt.yla

2020-10-16 20:44:41 86

原创 python 基础知识 PIL 图像

python PIL图像处理图像处理图像PIL库pip install pillowfrom PIL import Image //RGB 二维矩阵 import numpy as npim=np.array(Image.open(" .jpg"))print(im.shape,im.dtype) //三维数组 ,高度,宽度,像素RGBb=[255,255,255]-a //补集im=Image.fromarray(b.astype('uint8')) //生成图像对象i

2020-10-16 19:50:03 632

原创 python 基础知识 numpy 小结

python numpy 总结存取与函数CSV文件随机函数统计函数梯度函数存取与函数CSV文件np.loadtxt()np.savetxt()//多维np.tofile()np.fromfile()np.save()np.savez()np.load()随机函数np.random.rand()np.random.ranint()np.random.shuffle()np.random.randn()np.random.seed()np.random.permutati

2020-10-16 19:14:51 142

原创 python 基础知识 numpy 存取

python CSV文件random子库CSV文件random子库a=np.arange(100).reshape(5,20)np.savetxt('a.csv',a,fmt='%d',delimiter=',')np.loadtxt('a.csv',delimiter=',')array([[ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15., 16., 17., 1

2020-10-16 16:57:21 117

原创 python基础知识 numpy ndarray

python numpyndarray N维数组对象由实际数据,描述这些数据的元数据构成ndarray N维数组对象import numpy as np //别名def npSum: a=np.array([0,1,2,3,4]) b=np.array([9,8,7,6,5]) c=a**2+b**3 return cprint(npSum) 由实际数据,描述这些数据的元数据构成//轴 //秩 a.ndima.size a.shaoea.dtypea.

2020-10-16 16:27:39 62

原创 python基础知识 文件

python 文件文件文件help(open)f=open('E:\\record.txt')f.close()f.readline()f.read() //末尾f.read(5)f.tell() //所在文件中的位置f.seek(45,0) //移动文件指针,从from 偏移ffset个字节list(f) //转化为列表for each_line in f: print(each_line) //高效f=open('E:\\test.txt','w')f.wr

2020-10-16 15:09:31 56

原创 京东数科 测试岗实习 电话面试失败

京东数科 测试岗实习你上了哪些与计算机相关的课程?Linux常用命令你说几个?网址输入,按下enter发生了什么?测试岗位你了解吗?你为什么报测试岗?你上了哪些与计算机相关的课程?Linux常用命令你说几个?网址输入,按下enter发生了什么?测试岗位你了解吗?你为什么报测试岗?...

2020-10-16 13:06:03 157

原创 python 基础知识集合

python 集合集合集合//创建一个集合num={1,2,3,4,5,6}set=set([1,2,3,4,5])

2020-10-15 22:59:31 74

原创 python 基础知识 字典

python 字典字典字典band=['1', '2', '3', '4']slogan=['one','two','three','fourth']dict1={'1':'one', '2':'two', '3':'three', '4':'fourth'}dict1[2]dict2={} //创建字典dict() //创建字典dict3=dict((('F',70),('i',105),('s',115)))dict4=dict(fish='let you eat',flowe

2020-10-15 22:56:12 202

原创 python 基础知识 lambda 递归

python lambda lambda递归lambdag=lambda x:2*x+1def add(x,y): return x+yg= lambda x,y:x+y// lambda 省下定义函数过程 简化代码可读性//过滤器 Filter()help(filter)list(filter(None,[1,0,False,True]))list(filter(lambda x : x % 2, range(10)))list(map(lambda x: x*2,range

2020-10-15 22:34:22 182

python基础知识 函数

python 函数函数函数def MyFirstFunction(): print('This is my first function!')MyFirstFunction() //调用函数def MySecondFunction(): print(name+'I love you!!!');MySecondFunction('fish');//调用函数MySecondFunction('flower');//调用函数MySecondFunction.__doc__ //

2020-10-15 22:18:37 94

原创 python基础知识 序列

python基础知识 序列序列序列a=list()b='I love FishC.com'b=list(b) //字符串转化为列表c=(1,3,45,32,5)c=list(c)[1,2,45,32,5]max(b) //返回ASCII最大的字母numbers=[1,23,12,5,34,65,23,87]numbers.append('a') //列表是个大砸缸numbers.pop();sorted(numbers);reversed(numbers); //返

2020-10-15 16:47:40 82

原创 python 基础知识 字符串 格式化

python 基础知识字符串字符串"{a} love {b}.{c}".format(a="I",b="fishc",c="com")'{0:.1f}{1}'.format('27.658','GB') //保留一位小数'27.7GB''%c' %97 //ASCII码'a''%c %c %c' % (97,98,99)'a b c''%s' % 'I love FishC.com''%d + %d =%d' % (4,5,4+5)'%o' % 10'%x' % 10

2020-10-15 16:24:07 61

原创 python 基础知识-字符串 内置方法

python 基础知识-字符串字符串字符串//内置方法str1='I love fish.com'str1[:6]str1=str1[:6]+'插入的字符串'+str1[6:] //拼接字符串str1.captialize //第一个字符大写str1.casefold() //小写str1.endswith() //结尾str1.expandtabs() //str1.count('i') //str1.find('fish')str1.istitle() //首字母大写,其

2020-10-15 16:04:14 246

原创 python 基础知识 数组 元组

python 数据结构数组二级三级目录数组number=[1,2,3,4,5];mix=[1,'鱼',[3,4]];member=['fish','flower'];member.append('cat');len(member);member.extend(['black','dog']); //一个列表扩充另一个列表member.insert(1,'river');//从0开始 二进制数据,只有0和1 temp=member[0];member[0]=member[1];mem

2020-10-15 15:01:44 322

原创 bat测试岗位实习生 面试10.15(失败)

百度测试岗位实习生 面试10.15一面都没过,菜鸡的菜没有下限自我介绍一下你上的课是有哪些和计算机相关的课程?你的人工智能课讲得什么呢?计算机网络课你上过,http和TCP讲一下http里的post和gest讲一下?三次握手是TCP里面的你的课题是和深度学习有关吗?你现在做有人工智能的搜索算法之类的吗?你用的多的语言是什么?一个文档里面有用户名,很多用户名重复,你用python找出来有多少?(记不清了)用C++呢?你熟悉数据库吗?用数据库统计一个班学习成绩不及格的人数微信发语音,怎么测试?(测试岗考察,不知

2020-10-15 11:40:01 231 1

原创 linux命令

linux命令conda新建环境Docker 里 apt-get安装出现E: Sub-process /usr/bin/dpkg returned an error code (1)问题更新安装包查看conda里的环境构建OpenCVconda新建环境conda create -n py27 python=27source activate py27Docker 里 apt-get安装出现E: Sub-process /usr/bin/dpkg returned an error code (1)

2020-10-14 16:27:31 66

转载 ListNode链表知识

ListNode 的知识链表链表struct ListNode { int val; //定义val变量值,存储节点值 struct ListNode *next; //定义next指针,指向下一个节点,维持节点连接 }在节点ListNode定义中,定义为节点为结构变量。节点存储了两个变量:value 和 next。value 是这个节点的值,next 是指向下一节点的指针,当 next 为空指针时,这个节点是链表的最后一个节点。注意注意val只代表当前

2020-10-12 19:22:18 425 1

转载 Ubuntu 16.04 python 3.6 install

Ubuntu 16.04 python 3.6 installzhuanzai:https://www.cnblogs.com/esin/p/7073119.html;https://www.cnblogs.com/yjlch1016/p/8641910.html;

2020-10-10 19:35:51 69

转载 TensorFlow报错 FutureWarning: Passing (type, 1) or ‘1type‘... 的解决方法

@[TOC](TensorFlow报错 FutureWarning: Passing (type, 1) or ‘1type’… 的解决方法)报错tensorflow\python\framework\dtypes.py:516: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (ty

2020-10-10 18:10:55 391

转载 解决Your CPU supports instructions that this TensorFlow binary was not compiled

解决Your CPU supports instructions that this TensorFlow binary was not compiledCPU版本的tensorflow,出现上述警告信息时只需要加一行如下代码:CPU版本的tensorflow,出现上述警告信息时只需要加一行如下代码://jiejuefangfaimport os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' 转载:https://blog.csdn.net/yuanren201

2020-10-10 17:56:08 300

转载 解决 No module named matlab.engine 的问题

解决 No module named matlab.engine 的问题#注意在matlab的python目录下 要activate conda的环境转载:https://blog.csdn.net/qq_42580947/article/details/106837408?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-4.edu_weight&depth_1-utm_source=distribut

2020-10-10 11:18:56 799

原创 Python使用requirements.txt批量安装包

Python使用requirements.txt批量安装包requirements 文件格式cd 到requirements的目录下requirements 文件格式numpy==1.2.0tensorflow>=2.2cd 到requirements的目录下pip install -r requirements.txt

2020-10-10 10:52:54 300

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除