#include #define fi first #define se second #define INF 0x3f3f3f3f #define fio ios::sync_with_stdio(false);cin.tie(0);cout.tie(0) #define pqueue prior... ...
分类:
其他好文 时间:
2018-09-09 11:51:58
阅读次数:
177
import random random.shuffle([]) 把这个list原地打乱 random.choice([]) 从这个list中随机选一个 random.sample([],k=..) 随机产生k个例子 random.normalvariate(mu=..,sigma = ) 随机正态 ...
分类:
编程语言 时间:
2018-09-08 22:32:53
阅读次数:
221
很长一段时间以来,一个region同一时间只能在一台RS(Region Server)中打开。如果一个region同时在多个RS上打开,就是multi-assign问题,会导致数据不一致甚至丢数据的情况,这是要避免和解决的。对于正常情况而言,region本质上是单点服务的,当RS宕机时,这个RS上的 ...
分类:
其他好文 时间:
2018-09-08 17:38:30
阅读次数:
140
1. hidden_layer_sizes :元祖格式,长度=n_layers-2, 默认(100,),第i个元素表示第i个隐藏层的神经元的个数。 2. activation :{‘identity’, ‘logistic’, ‘tanh’, ‘relu’}, 默认‘relu - ‘identity ...
分类:
其他好文 时间:
2018-09-07 22:52:57
阅读次数:
1556
Anveshak:在野外放置边缘服务器 本文为SIGCOMM 2018 Workshop (Mobile Edge Communications, MECOMM)论文。 笔者翻译了该论文。由于时间仓促,且笔者英文能力有限,错误之处在所难免;欢迎读者批评指正。 本文及翻译版本仅用于学习使用。如果有任何 ...
分类:
其他好文 时间:
2018-09-07 18:38:11
阅读次数:
306
protected V getValFromMap(Map headers, String name, Class type) { Object value = headers.get(name); if (value == null) { return null; } if (!type.isAs... ...
分类:
编程语言 时间:
2018-09-07 16:46:03
阅读次数:
216
# 元组就是不可变的列表, 元组使用()表示, 元素与元素之间使用逗号隔开, 数据类型没有限制, 只读列表# 清朝皇帝 (努尔哈赤, 皇太极, 顺治, 康熙, 雍正, 乾隆)# huang = ("努尔哈赤", "皇太极", "顺治", "康熙", "雍正", "乾隆", "嘉庆", "道光", " ...
分类:
编程语言 时间:
2018-09-06 23:07:49
阅读次数:
268
too many open files 出现这句提示的原因是程序打开的文件/socket连接数量超过系统设定值。 查看每个用户最大允许打开文件数量 ulimit -a fdipzone@ubuntu:~$ ulimit -a fdipzone@ubuntu:~$ ulimit -a core fil ...
分类:
系统相关 时间:
2018-09-06 14:29:52
阅读次数:
229
WordPress用户密码保存在wp_users数据表的user_pass字段,密码是通过Portable PHP password hashing framework类产生的, 密码的形式是随机且不可逆,同一个明文的密码在不同时间,产生的密文也不一样,相对来说较为安全。 WordPress用户密码 ...
分类:
编程语言 时间:
2018-09-06 11:05:00
阅读次数:
214
66、Plus One Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that the most s ...
分类:
其他好文 时间:
2018-09-06 02:51:35
阅读次数:
127