pandas 常用清洗数据(一)
摘要:数据源获取: https://www.kaggle.com/datasets 1、
阅读全文
pyhanlp python 脚本的demo补充
摘要:java demo https://github.com/hankcs/HanLP/tree/master/src/test/java/com/hankcs/demo github python demo https://github.com/hankcs/pyhanlp/tree/master/t
阅读全文
'basetsd.h': No such file or directory
摘要:By Select the Windows 8.1 SDK During install. Download visualcppbuildtools_full.exe from below website https://download.microsoft.com/download/5/f/7/5
阅读全文
python gevent mokey
摘要:#eg: monkey的理解 http://www.bjhee.com/gevent.html
阅读全文
python 自然语言处理库https://www.nltk.org/nltk_data/
摘要:https://www.nltk.org/nltk_data/https://github.com/hankcs/HanLP
阅读全文
Python 图示集绵
摘要:http://nbviewer.jupyter.org/github/pyecharts/pyecharts-users-cases/blob/master/notebook-users-cases/notebook-user-cases.ipynb https://pyecharts.heroku
阅读全文
Python gevent
摘要:1\协程 def get_title(i): print(threading.current_thread().name) # 打印出当前线程名称 gevent.joinall([gevent.spawn(get_title, i) for i in range(10)]) def get_titl
阅读全文
Python threading
摘要:eg: Error self._target(*self._args, **self._kwargs) TypeError: get_zonghe_answers() takes 1 positional argument but 36 were given Instead, you should
阅读全文
Python Multiprocessing
摘要:http://wuduozhi.me/2018/06/21/python-Multiprocessing%E5%A4%9A%E8%BF%9B%E7%A8%8B/ https://blog.csdn.net/Winterto1990/article/details/48102005
阅读全文
python list 常用
摘要:l = [1,2,3,4] b = [4,5,6] l.remove(1) #val del l[0] #key new_list = l.extend(b) #[1,2,3,4,4,5,6] new_list = l.append('a') #[1,2,3,4,'a']
阅读全文
Python BeautifulSoup 中文乱码
摘要:resp = requests.get(url) resp.encoding = 'utf-8' answer_list = [] if resp: bs_data = BeautifulSoup(resp.text, 'lxml')
阅读全文
Python requests
摘要:resp = requests.get(url) ###### resp 属性: status_code text is_redirect encoding url ##########
阅读全文
pandas 读取大文件 read_table C-engine CParserError: Error tokenizing data
摘要:engine : {‘c’, ‘python’}, optional Parser engine to use. The C engine is faster while the python engine is currently more feature-complete. 1、 iterato
阅读全文
sklearn
摘要:https://blog.csdn.net/TiffanyRabbit/article/details/76574009?utm_source=blogxgwz24
阅读全文
Python json
摘要:import json json_value_tmp= json.loads(json_data) # api return value for data in json_value_tmp: a = data['name'] #json getdata from json file import
阅读全文
Python Try Except
摘要:Python Try: Except https://docs.python.org/3/tutorial/errors.html
阅读全文
机器学习名词
摘要:Keras里的dense layer,就是全连结(fully connected)层。 Keras里的dropout layper,就是随机删去了一些连接,也就相当于是sparse layer。
阅读全文
numpy 矩阵变换transpose和swapaxes
摘要:1、transpose 交换 1、swapaxes交换
阅读全文
numpy 矩阵变换 reshape ravel flatten
摘要:1、 两者的区别在于返回拷贝(copy)还是返回视图(view),numpy.flatten()返回一份拷贝,对拷贝所做的修改不会影响(reflects)原始矩阵,而numpy.ravel()返回的是视图(view,也颇有几分C/C++引用reference的意味),会影响(reflects)原始矩
阅读全文
python list [:1]
摘要:python 切片slice 1、补充: https://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/0013868196352269f28f1f00aee485ea27e3c4e47f12b
阅读全文
python 读取文件
摘要:1、python读取文件 numpy 常用的是loadtxt(file_name) # 默认#后的都会忽略 pandas with
阅读全文
神经网络相关术语
摘要:本着创建第一个模型-->训练-->预测的“简单流程”
阅读全文
keras初探
摘要:1、对网络的理解: 2、怎样训练,输入已经数据,经过训练,输入测试数据,得到相似数据 3、RNNs 循环神经网络
阅读全文
机器学习相关
摘要:tensor链接: http://playground.tensorflow.org/#activation=tanh&batchSize=10&dataset=circle®Dataset=reg-plane&learningRate=1®ularizationRate=0&noise
阅读全文
Numpy random arange zeros
摘要:1、 rand(2,4) #2*4 shape 矩阵 rand(d0, d1, …, dn) rand_sample() #随机生成矩阵 2、 prng = np.random.RandomState(123456789) # 定义局部种子prng.rand(2, 4) prng.chisquare
阅读全文
python 规范
摘要:摘自google. https://i.cnblogs.com/PostDone.aspx?postid=9753605&actiontip=%E4%BF%9D%E5%AD%98%E4%BF%AE%E6%94%B9%E6%88%90%E5%8A%9F 1、缩进 Tip 用4个空格来缩进代码 2、代码
阅读全文
pandas 数据结构基础与转换
摘要:pandas 最常用的三种基本数据结构: 1、dataFrame: https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.html DataFrame相当于有表格(eg excel),有行表头和列表头 1.1初
阅读全文
Python 基础常用
摘要:1、连接符: + 2、基本类型: [] {} () list set :无序,不重复的集合 数据初始化: a = set('a','b'); 或者 {'1'} #只能初始化空的集合; 相关函数: 添加数据: a.add('a'); a.update(['...
阅读全文
css 横向滚动条webkit-scrollbar
摘要:最近遇到一个横向滚动条的问题: 官网链接: https://developer.mozilla.org/zh-CN/docs/Web/CSS/::-webkit-scrollbar 这个 ::-webkit-scrollbar CSS伪类选择器影响了一个元素的滚动条的样式 ::-webkit-scr
阅读全文