Posts
2017
codeforces #425 D. Misha, Grisha and Underground (dfs+rmq在线求LCA,讨论了一年)
题目链接
题意: # 给出一棵树,以及三个点(可能重合),问两两组成的3条路径中,哪2条路径重合部分最长。
codeforces #425 B. Petya and Exam (暴力)
·3 分钟
题目链接
题意: # 给出由小写字母,’?‘和’*‘组成的字符串s,仅由小写字母组成的字符串t,问按照规则s能否变成t.
hdu 2815 Mod Tree (扩展BSGS算法)
题意:k^D=n(%p),求最小的D (1<=K, P, N<=10^9)
思路:出题人英文水平捉鸡。。。。
BZOJ 2480: Spoj3105 Mod (扩展BSGS算法,模板)
Description # 已知数a,p,b,求满足a^x≡b(mod p)的最小自然数x。
python numpy 用法 简明手册
原文链接
感谢stanford,感谢原作者的翻译,我调整了一下代码格式,可以当做手册来用了,毕竟之前没怎么写过py 23333
poj 2417 Discrete Logging (BSGS算法)
题目链接
题意:
Given a prime P, 2 <= P < 231, an integer B, 2 <= B < P, and an integer N, 1 <= N < P, compute the discrete logarithm of N, base B, modulo P. That is, find an integer L such that BL == N (mod P)
stanford cs 231n:常用激活函数
·6 分钟
其实我觉得这部分可以直接黑箱。。。直接无脑上Leaky ReLU或者Maxou?不过对这些激活函数的特点有个high-level的了解应该总是没坏处的,只要别太纠结细节就好了把。。 # 每个激活函数(或非线性函数)的输入都是一个数字,然后对其进行某种固定的数学操作。下面是在实践中可能遇到的几种激活函数:
how to copy & modify nets model on tensorflow slim
·2 分钟
想要修改tensorflow-slim 中 nets中的某个model,例如明明为kk_v2.py
Inception-v4,Inception-ResNet 和残差连接对学习的影响
·13 分钟
原始论文
翻译链接
**——前言:**作者认为残差连接在训练深度卷积模型是很有必要的。至少在图像识别上,我们的研究似乎并不支持这一观点。
Deep Learning Tutorial - PCA and Whitening
·4 分钟
说下我自己的理解
PCA:主成分分析,是一种预处理手段。对于n维的数据,通过一些手段,把变化显著的k个维度保留,舍弃另外n-k个维度。对于一些非监督学习算法,降低维度可以有效加快运算速度。而n-k个最次要方向的丢失带来的误差不会很大。
archlinux/manjaro 下 安装 qq/tim
参考资料:install qq/tim on linux with wine
wine运行qq不能输入账号
This tutorial introduces how to install QQ/TIM in Linux with Wine, which had been tested on ArchLinux with Wine 2.4.
libgfortran.so.4 missing under archlinux
。。。哭了哦。。终于解决了这个bug
参考资料:
libgfortran broken? libgfortran=3.0 should not be install with numpy <= 1.9
conda升级anaconda ValueError的解决办法
conda update anaconda 后提示
1ValueError: unsupported format character ')' (0x29) at index 49 查到了这个:anaconda update issue
I have narrowed this down to the following packages:
package build psutil-1.2.1 py27_0 hard-link pycparser-2.10 py27_0 hard-link pykit-0.1.0 np18py27_2 hard-link pyparsing-2.0.1 py27_0 hard-link by calling "conda install anaconda" and then successfully installing everything else one at a time. These four packages consistently exhibit the described behaviour. (note: pykit depends on pycparser so may itself be ok - can't tell) 我先把psutil卸载掉,重新update了一下,成功。