自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(44)
  • 资源 (1)
  • 收藏
  • 关注

原创 GAN深度强化学习2

文章目录Theory behind GANTheory behind GAN想要找出这种分布真实分布未知,求出近似解PG,PdataP_G,P_{data}PG​,Pdata​未知

2019-06-25 14:58:08 525

原创 GAN深度强化学习1

文章目录IntroductionIntroductionGAN的目标,训练出一个generator ,产生某些东西上图,第一维代表头发长短,倒数第二维代表蓝色的深浅…输出的scalar 代表图片的质量...

2019-05-20 09:38:42 2929

原创 李宏毅机器学习笔记三

Contents21 Recurrent Neural Network21 Recurrent Neural Network注:lexicon 全部词汇,词汇表相同的输入要求有不同输出,这需要NN有记忆功能。更新记忆:可见输入相同的[11]\begin{bmatrix}1\\1\end{bmatrix}[11​],输出不同,[44]\begin{bmatrix}4\\...

2019-05-14 13:37:27 189

原创 李宏毅机器学习笔记一

Contents0 Introduction of this Course1 Regression-Case Study2 Where does the error come from?0 Introduction of this CourseAI : 目标Machine Learning :手段Deep Learning:Machine Learning的一种方法1 Regressio...

2019-05-10 15:26:53 1032

原创 李宏毅机器学习笔记二

Contents0-1 Introduction of this Course1 Regression-Case Study0-1 Introduction of this CourseAI : 目标Machine Learning :手段Deep Learning:Machine Learning的一种方法1 Regression-Case StudyOutput a scalar ...

2019-04-23 10:09:19 484

原创 LeetCode in python

class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: for i in range(len(nums)-1): for j in range(i+1,len(nums)): if nums...

2019-04-14 11:21:39 256

原创 李宏毅深度学习

文章目录Basic Structures for Deep Learning ModelsBasic Structures for Deep Learning Models与下一个LSTM单元相连

2019-04-13 21:34:08 526

转载 序列模型(Sequence Models)

文章目录循环神经网络(Recurrent Neural Networks)循环神经网络(Recurrent Neural Networks)

2019-04-07 10:02:03 10256

原创 CS229笔记

文章目录1 Introduction1.1 What is Machine Learning1.2 Supervised Learning1 Introduction1.1 What is Machine LearningML :grew out of work in AI(产生于AI)new capability for computersML Examples:dat...

2019-03-24 22:46:55 951

原创 python爬虫(廖雪峰商业爬虫)

文章目录入门入门抓取图片并保存import requestsurl = 'https://ss0.baidu.com/73x1bjeh1BF3odCf/it/u=1855917097,3670624805&a

2019-02-09 16:57:31 9998

原创 数学问题

极大似然估计的理解最简单的理解就是:样本所展现的状态便是所有可能状态中出现概率最大的状态。(使实际观测到的数据,出现的可能性最大,即概率最大)为了方便大家更好的理解这一原理,这里举一个理解型的例子。现在有一个黑箱子里面有标有1或2的球共100个,现在从中有放回的抽取10个球,结果为{1,2,2,2,1,2,1,1,2,2},估计标有1的球在黑箱子里面有多少个。我们不妨把标有1的球设为...

2020-03-21 09:38:05 241

原创 TensorFlow使用

使用Keras框架时,自定义函数 def cos_value(x): return tf.cos(x) + 0.5 # 必须 tensor类型 model = Sequential([ layers.GRU(units=512, input_shape=(timesteps, 1), return_sequences=True, ...

2020-03-11 08:27:13 200

原创 visio使用

文章目录画神经网络图相交线凸起画神经网络图相交线凸起消除方法

2020-02-20 11:09:59 949

原创 GAN深度强化学习3

文章目录Feature ExtractionFeature ExtractioninfoGAN 解决这个问题z的前几维作为c,后几维作为z′z'z′c对x有明确的影响,如笔画粗细,倾斜角度。划分的c,经过训练才具有某些特性。z代表随机的,不确定的信息。label predictor 输出是哪一个数字feature disentangle 特...

2019-07-04 17:33:17 238

原创 办公技巧

文章目录批量word转pdf批量word转pdffrom win32com import client as wcimport globimport reword = wc.Dispatch('Word.Application')#glob批量获取指定目录下指定的所有文件的路径,返回路径列表。files = glob.glob(r"C:\Users\123\Desktop\格式\新建...

2019-06-27 14:04:44 189

原创 指南

本机微软输入法ctrl+shift+f : 切换简体繁体

2019-06-24 15:03:11 129

原创 pdf转图片(png高清)

不扯没用的,直接上代码1、环境:windows(Linux下应该也没问题)2、python版本:3.63、所需依赖:PyMuPDF(pip install pymupdf)以下是代码import fitz# 打开PDF文件,生成一个对象doc = fitz.open(r'C:\Users\123\Desktop\hangxianpdf\today\地中海.pdf')pri...

2019-05-24 17:13:43 3847 2

原创 安装类问题

GraphViz在python中报错 OSError: pydot failed to call GraphViz.Please install GraphViz (https://www.graphviz.org/) and ensure that its executables are in the $PATH.其实是pydot的锅。额,pydot已经停止开发了,python3.5和...

2019-04-30 08:10:59 126

原创 动态规划

递归写法(速度慢):def fibonacci(n): if n in (1, 2): return 1 return fibonacci(n - 1) + fibonacci(n - 2)print(fibonacci(8))非递归形式:def fibonacci(n): if n in (1, 2): return 1 ...

2019-04-21 12:42:25 543

原创 RNN代码

import numpy as npimport tensorflow as tfimport matplotlib.pyplot as pltHIDDEN_SIZE = 30 # LSTM中隐藏节点的个数。NUM_LAYERS = 2 # LSTM的层数。TIMESTEPS...

2019-04-16 10:28:45 1527

原创 python高级编程和异步IO并发编程

6

2019-04-02 21:06:20 343

原创 练习题

使用enumerate()而不是range()进行迭代用“fizz”替换所有可被3整除的整数用“buzz”替换所有可被5整除的整数将所有可被3和5整除的整数替换为“fizzbuzz”numbers = [45,22,14,65,97,72]for i,num in enumerate(numbers): if (num % 3 == 0) and (num % 5 == ...

2019-04-01 17:41:10 206

原创 李弘毅代码

回归import numpy as npimport matplotlib.pyplot as plt# y = b + wx# x_data = np.array([338,333,328,207,226,25,179,60,208,606],dtype=np.float)x_data = [338.,333.,328.,207.,226.,25.,179.,60.,208.,606...

2019-03-30 21:37:36 212

原创 编码格式

虽然世界通用的表unicode是有了,但是有人就发现这有点浪费资源啊。每次让计算机读取三个字节然后参照Unicode表解码,那么像a、b…0、1、2…这些一个字节就够了的就太浪费了。于是uft-8,utf-16,utf-32这些编码方案就出现了。utf-16是用两个字节来编码所有的字符,utf-32则选择用4个字节来编码,utf-8为了节省资源,采用变长编码,编码长度从1个字节到6个字节不等。可...

2019-03-27 15:48:23 171

原创 绘图

完整代码from matplotlib import pyplot as pltimport numpy as npdef sigmoid(z): return 1/(1+np.exp(-z))fig = plt.figure()ax= fig.add_subplot(111)# 画坐标轴ax.spines['top'].set_color('none')ax.spin...

2019-03-24 13:01:58 631

原创 python易错点

列表、数组赋值a = [1,6]b = a * 2b[0] = -9999print(a)print(b)[1, 6][-9999, 6, 1, 6]a = [1,6]b = a b[0] = -9999print(a)print(b)[-9999, 6][-9999, 6]import numpy as npa = np.array([1,6])b =...

2019-03-20 23:05:40 216

原创 Numpy,Pandas使用

扁平化 ravel flatten aqueeze reshape(-1) 的区别squeeze : 只能对维数为1的维度降维a= np.arange(6.).reshape((2,3))print(a.squeeze())print(a)[[0. 1. 2.] [3. 4. 5.]][[0. 1. 2.] [3. 4. 5.]]a= np.arange(6.).res...

2019-03-20 13:21:12 290

原创 小技能

文章目录零宽字符缩短英文句子精确到小数点前几位零宽字符uicode码在8203~8207之间的字符为零宽字符from itertools import cyclesignature = '我是青南'signature_bin_list = [bin(ord(i))[2:] for i in signature]text = '一日一技是一个每天更新的栏目,希望做到在每天几分钟让你获得提...

2019-03-10 23:17:27 147

原创 networkx使用

画有向图from matplotlib import pyplot as pltimport networkx as nx# directed graphG=nx.DiGraph()G.add_nodes_from([1,2,3])G.add_edges_from([(1,2),(1,3)])nx.draw_networkx(G)plt.show()调整节点之间的间距 ...

2019-03-09 12:28:01 217

原创 python知识精华:嵩天微专业笔记

异常处理1 基本用法应对所有情况try: 1/0except: print('某原因异常')应对特定异常情况try: 1/0except ZeroDivisionError: print('除数不应为0')try: 1/0except ZeroDivisionError as q: print(q)...

2019-02-22 08:48:42 1332

原创 pycharm使用

高亮效果

2019-02-13 21:17:46 128

原创 spyder/jupyter使用

ipython字体缩放:ctrl+"+/-"

2019-01-31 19:15:43 1625

原创 常见算法Python实现

1排序1.1选择法排序'''第i轮排序完后,第i位的数字是之后所有数中的最小数'''def selectsort(lst,reverse=False): for i in range(len(lst)): m = i for j in range(i+1,len(lst)): exp = 'lst[m] > lst[j]' if reverse: ex...

2019-01-17 09:16:13 207

原创 latex安装教程

1234

2019-01-14 11:39:09 1974

原创 提取pdf中的文字

import osa=r"C:\\Users\\123\\Anaconda3\\python.exe" b=r"C:\\Users\\123\\Anaconda3\\Scripts\\pdf2txt.py -o" c=r"C:\\Users\\123\\Desktop\\py\\we.txt"d=r"C:\\Users\\123\\Desktop\\py\\we.pd

2019-01-13 12:42:44 1496

原创 word2016加参考文献

1o更改编号格式,[]2o交叉引用3o变成上标

2019-01-11 16:31:38 7364

转载 拆分PDF文件

from PyPDF2 import PdfFileReader, PdfFileWriterdef split_pdf(infn, outfnpage): """ infn: 切分的pdf outfnpage:切分之后每份pdf的页数 """ pdf_input = PdfFileReader(open(infn, 'rb')) page_co...

2019-01-08 20:30:38 106

原创 检查字符串安全强度

import stringdef check(pwd): if not isinstance(pwd,str) or len(pwd) < 6: return '密码格式错误' #密码强度等级 d={1:'weak', 2:'below middle', 3:'above middle', 4:'strong'} #标记是否含有数字、小写、...

2019-01-08 10:16:47 551

转载 Markdown模板

CS229笔记目录欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Mar...

2019-01-07 20:30:06 221

原创 字符加密

对字符串进行加密与解密import string#为密匙,即平移字符的个数def Caesar(s,k): lower = string.ascii_lowercase upper = string.ascii_uppercase before = string.ascii_letters after = lower[k:]+lower[:k]+upper[k...

2019-01-06 10:57:43 1366

python笔记

Python的代码块不是使用{}来控制类,函数以及其他逻辑判断,使用缩进来写代码块,缩进的空白数据是可变的,但是所有同级代码块包含的缩进空白数量是必须相同的,必须严格执行,否则会报异常。

2018-04-17

空空如也

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

TA关注的人

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