Fork me on GitHub

02 2014 档案
How to calculate bits per character of a string? (bpc) to read
摘要:http://stackoverflow.com/questions/17797922/how-to-calculate-bits-per-character-of-a-string-bpcup vote1down votefavoriteA paper I was reading,http://www.cs.toronto.edu/~ilya/pubs/2011/LANG-RNN.pdf, uses bits per character as a test metric for estimating the quality of generative computer models of t 阅读全文
posted @ 2014-02-27 15:46 huashiyiqike 阅读(633) 评论(0) 推荐(0)
ubuntu ssh前后台切换命令相关
摘要:后台运行:命令+&例如 sleep 60 &jobs -l显示job的pid和状态ps 显示用户进程将第一个job切换回前台:fg 1放到后台:bg 1cltr + z 挂起进程退出shell exit直接关闭好像也可以问题:使用新的session怎样找回后台进程。更好的办法,使用screen1、新建一个screen 直接screen或者screen -S XXX(XXX是你为这个screen指定的名字)2、在screen中新建一个虚拟终端(此时你的screen中就有了两个虚拟终端了)ctrl+a+c(先按ctrl+a,然后再按c,下面的命令也一样)3、在虚拟终端之间切换s前一 阅读全文
posted @ 2014-02-24 09:27 huashiyiqike 阅读(1820) 评论(0) 推荐(0)
samba共享文件夹设置
摘要:sudo apt-get install samba(4)mkdir /home/用户名/share (新建share文件夹)sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backupsudo gedit /etc/samba/smb.conf搜寻这一行文字 代码:; security = user用下面这几行取代代码:security = userchmod 777 /home/用户名/share (设置该文件夹的权限使其让所有用户可读可写可运行)[Share]path = /home/用户名/sharepublic = yeswr... 阅读全文
posted @ 2014-02-22 13:24 huashiyiqike 阅读(2511) 评论(0) 推荐(0)
Ubuntu下环境变量的设置
摘要:远程登录时,不是ssh登陆:xrdp 可以修改并添加 /etc/xrdp/startwm.sh代码:#!/bin/shif [ -r /etc/default/locale ]; then . /etc/default/locale export LANG LANGUAGEfi. /etc/profile. /etc/X11/Xsession转自http://hi.baidu.com/sujinsujin/item/f3fd3bed56a408ddeb34c9eb/etc下:(bash.bashrc[Ubuntu]或bashrc[CentOS]);environment;profile普通用户 阅读全文
posted @ 2014-02-22 10:33 huashiyiqike 阅读(896) 评论(0) 推荐(0)
pycuda安装 python<3.0
摘要:cd pycudapython ./configure.py –cuda-root=/usr/local/cuda –cudadrv-lib-dir=/usr/lib –boost-inc-dir=/usr/include –boost-lib-dir=/usr/lib –boost-python-libname=boost_python-mt26 –boost-thread-libname=boost_thread-mtmake -j 4sudo python setup.py install 阅读全文
posted @ 2014-02-21 22:31 huashiyiqike 阅读(1433) 评论(0) 推荐(0)
python load mat
摘要:1 from scipy import io2 dataset = io.loadmat("a.mat")3 exclude = ['__globals__', '__header__', '__version__']4 for obj in dataset.keys():5 if obj not in exclude:6 print obj+'=dataset["'+obj+'"]'7 exec(obj+'=dataset["'+obj+' 阅读全文
posted @ 2014-02-21 17:12 huashiyiqike 阅读(3275) 评论(0) 推荐(0)
ubuntu12下安装eclipse+pydev +1搜索命令+kill指定进程
摘要:sudo apt-get install eclipse下载pydev for eclipse 2.8,如果是jre6解压。sudo nautilus 复制相应的文件夹到/usr/share/eclipse/dropins/对应的 features 和plugin文件夹里面查找安装目录find / ... 阅读全文
posted @ 2014-02-21 14:58 huashiyiqike 阅读(245) 评论(0) 推荐(0)
怎样写文章
摘要:http://research.microsoft.com/en-us/um/people/simonpj/papers/giving-a-talk/writing-a-paper-slides.pdf先写文章再做研究?hard to understand and practice... um....不要在前面专门用一段介绍related work,赶走读者。give credit as you go by.可以放在最后 give the literature for core reader.不用section 2 is... section 3 is about... section 4 c 阅读全文
posted @ 2014-02-19 22:46 huashiyiqike 阅读(276) 评论(0) 推荐(0)
Theano笔记
摘要:scan函数theano.scan(fn,sequences=None,outputs_info=None,non_sequences=None,n_steps=None,truncate_gradient=-1,go_backwards=False,mode=None,name=None,profile=False)outputs_infois the list of Theano variables or dictionaries describing the initial state of the outputs computed recurrently.fn是每一步所用的函数,seq 阅读全文
posted @ 2014-02-17 22:11 huashiyiqike 阅读(7612) 评论(0) 推荐(0)
转 矩阵 解域 零空间
摘要:2011-09-01 03:424626人阅读评论(3)收藏举报eigenvalue矩阵的基础内容以前已经提到,今天我们来看看矩阵的重要特性——特征向量。矩阵是个非常抽象的数学概念,很多人到了这里往往望而生畏。比如矩阵的乘法为什么有这样奇怪的定义?实际上是由工程实际需要定义过来的。如果只知道概念不懂有何用处,思维就只有抽象性而没有直观性,实在是无法感受矩阵的精妙。直观性说明我们先看点直观性的内容。矩阵的特征方程式是:A * x = lamda * x这个方程可以看出什么?上次我们提到矩阵实际可以看作一个变换,方程左边就是把向量x变到另一个位置而已;右边就是把向量x作了一个拉伸,拉伸量是lamd 阅读全文
posted @ 2014-02-11 22:14 huashiyiqike 阅读(4418) 评论(0) 推荐(0)
转Generative Model 与 Discriminative Model
摘要:没有完全看懂,以后再看,特别是hmm,CRF那里,以及生成模型产生的数据是序列还是一个值,hmm应该是序列,和图像的关系是什么。【摘要】 - 生成模型(Generative Model) :无穷样本==》概率密度模型 = 产生模型==》预测 - 判别模型(Discriminative Model):有限样本==》判别函数 = 预测模型==》预测【简介】简单的说,假设o是观察值,q是模型。如果对P(o|q)建模,就是Generative模型。其基本思想是首先建立样本的概率密度模型,再利用模型进行推理预测。要求已知样本无穷或尽可能的大限制。这种方法一般建立在统计力学和bayes理论的基础之上。如果 阅读全文
posted @ 2014-02-11 15:12 huashiyiqike 阅读(277) 评论(0) 推荐(0)
Long short term memory原理
该文被密码保护。
posted @ 2014-02-11 15:08 huashiyiqike 阅读(3) 评论(0) 推荐(0)
从概率图模型pgm到rbm
摘要:有向图模型:directed acyclic graph DAG 贝叶斯网络对称的,无向图,UGM: undirected graphic model UGM, 更有名的名称是MRF,markov random field 马尔科夫随机场discriminative UGM: 高大上的名字是,条件随机场,CRF, conditional random fieldsMRF的特例:hopfield networkhopfield network的特例Boltsmann machine,在hopfield基础上加入了隐层节点Restricted Boltsmann machine 隐层和显层之间有连 阅读全文
posted @ 2014-02-08 16:06 huashiyiqike 阅读(672) 评论(0) 推荐(0)
BPTT for multiple layers
摘要:单层rnn的bptt:每一个时间点的误差进行反向传播,然后将delta求和,更新本层weight。多层时:1、时间1:T 分层计算activation。2、时间T:1 利用本时间点的误差,分层计算weight delta,和之前时间点的计算结果相加。最后得到的delta用来更新weight。 阅读全文
posted @ 2014-02-07 16:18 huashiyiqike 阅读(4688) 评论(0) 推荐(0)
python 中文注释 myeclipse+pydev环境
摘要:# -*- coding: gb2312 -*- 阅读全文
posted @ 2014-02-07 12:06 huashiyiqike 阅读(128) 评论(0) 推荐(0)
time management
该文被密码保护。
posted @ 2014-02-05 21:52 huashiyiqike 阅读(1) 评论(0) 推荐(0)