题目链接
题意: # 给出一棵树,以及三个点(可能重合),问两两组成的3条路径中,哪2条路径重合部分最长。
题目链接
题意: # 给出由小写字母,’?‘和’*‘组成的字符串s,仅由小写字母组成的字符串t,问按照规则s能否变成t.
题意:k^D=n(%p),求最小的D (1<=K, P, N<=10^9)
思路:出题人英文水平捉鸡。。。。
来来回回折腾了好多次,aur直接安装或者手动编译,安装后都无法补全
Description # 已知数a,p,b,求满足a^x≡b(mod p)的最小自然数x。
原文链接
感谢stanford,感谢原作者的翻译,我调整了一下代码格式,可以当做手册来用了,毕竟之前没怎么写过py 23333
离散对数(Discrete Logarithm)问题是这样一个问题,它是对于模方程
题目链接
题意:
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)
其实我觉得这部分可以直接黑箱。。。直接无脑上Leaky ReLU或者Maxou?不过对这些激活函数的特点有个high-level的了解应该总是没坏处的,只要别太纠结细节就好了把。。 # 每个激活函数(或非线性函数)的输入都是一个数字,然后对其进行某种固定的数学操作。下面是在实践中可能遇到的几种激活函数:
想要修改tensorflow-slim 中 nets中的某个model,例如明明为kk_v2.py
原始论文
翻译链接
**——前言:**作者认为残差连接在训练深度卷积模型是很有必要的。至少在图像识别上,我们的研究似乎并不支持这一观点。
课程链接 # 知乎翻译链接
之前看的原版,后来发现知乎上有翻译,正好想到之前看完没有整理总结,干脆就写一下自己的理解,顺便贴一下课程翻译(感觉翻译的质量好像还可以?
py的源码看起来还是很愉快的。。。(虽然熟练成程度完全不如cpp。。。。
参考资料
机器学习中梯度下降(Gradient Descent, GD)算法只需要计算损失函数的一阶导数,计算代价小,非常适合训练数据非常大的应用。
说下我自己的理解
PCA:主成分分析,是一种预处理手段。对于n维的数据,通过一些手段,把变化显著的k个维度保留,舍弃另外n-k个维度。对于一些非监督学习算法,降低维度可以有效加快运算速度。而n-k个最次要方向的丢失带来的误差不会很大。
参考资料: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.
。。。哭了哦。。终于解决了这个bug
参考资料:
libgfortran broken? libgfortran=3.0 should not be install with numpy <= 1.9
20180214 update:
第一个版本已经比较久了,于是更新一下,顺便写了个脚本orz
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了一下,成功。
…先随便记录一下好了。。。
* 神经网络识别数字或者字母? * 识别车牌号? * not hot dog? 安装python pandas pandas