python
Addmana
这个作者很懒,什么都没留下…
展开
-
Anaconda安装一些库的问题
使用 清华的镜像快很多 conda config –add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config –set show_channel_urls yes原创 2017-01-14 23:39:23 · 874 阅读 · 0 评论 -
theano 的问题:import no module named gof
theano安装的问题原创 2017-01-15 21:52:49 · 2463 阅读 · 0 评论 -
关于为什么要用 if cv2.waitKey(1) & 0xFF == ord('q'): break的解释
On some systems, waitKey() may return a value that encodes more than just the ASCII keycode. (A bug is known to occur on Linux when OpenCV uses GTK as its backend GUI library.) On all systems, we can原创 2017-01-18 20:17:00 · 24053 阅读 · 0 评论 -
numpy 矩阵求和小技巧
求多维张量(矩阵)所有元素之和。import numpy as npY = np.random.randn(3,4,5)sum_matrix = np.sum(np.reshape(Y,(Y.size,)))技巧就是把Y变为一维向量。原创 2017-11-07 21:12:22 · 24857 阅读 · 0 评论 -
numpy power ValueError: Integers to negative integer powers are not allowed.
# numpy.power(x1,x2)numpy.power(1,-1)这样做是不允许的,只需把x1 = float(x1)就行原创 2017-10-30 20:29:01 · 5925 阅读 · 2 评论 -
numpy tile 和 matlab repmat
如果matrix 是二维,numpy tile 和 matlab repmat表现一样。 如果是三维张量,那么需要 gg = temp_gg[:,:,np.newaxis] np.tile(gg, (1,1,dimY[n]))改。原创 2017-11-09 20:54:51 · 2613 阅读 · 0 评论 -
pandas 读取大文件
from matplotlib import pyplot import scipy as sp import numpy as np from matplotlib import pylab from pandas import Series, DataFrameimport pandas as pdfilename = 'data.txt'data = pd.read_cs原创 2017-11-09 20:56:16 · 3346 阅读 · 0 评论 -
阿里云530问题
来自https://www.cnblogs.com/bqx619/p/5021458.htmlsudo apt-get remove vsftpd sudo rm /etc/pam.d/vsftpd sudo apt-get install vsftpd 这是因为ubuntu启用了PAM,所在用到vsftp时需要用到 /etc/pam.d/vsftpd 这个文件(默认源码安装的不会有这个文件)转载 2017-11-12 11:43:38 · 297 阅读 · 0 评论