The Little Elephant loves strings very much. He has an array a from n strings, consisting of lowercase English letters. Let's number the elements of t ...
分类:
其他好文 时间:
2018-03-17 23:25:03
阅读次数:
283
深度学习Keras框架笔记之TimeDistributedDense类使用方法笔记 例: 这是一个基于时间维度的全连接层。主要就是用来构建RNN(递归神经网络)的,但是在构建RNN时需要设置return_sequences=True。 inputshape: 3维 tensor(nb_samples ...
分类:
其他好文 时间:
2018-03-17 17:56:13
阅读次数:
2490
Suppose that all the keys in a binary tree are distinct positive integers. Given the preorder and inorder traversal sequences, you are supposed to out ...
分类:
其他好文 时间:
2018-03-17 00:42:20
阅读次数:
248
转载:http://home.cnblogs.com/louyihang-loves-baiyan/ layer这个类可以说是里面最终的一个基本类,深度网络就是一层一层的layer,相互之间通过blob传输数据连接起来。首先layer必须要实现一个forward function,前递函数功能可以自 ...
分类:
其他好文 时间:
2018-03-16 23:50:23
阅读次数:
374
转载:http://www.cnblogs.com/louyihang-loves-baiyan/ 首先看到的是Blob这个类,Blob是作为Caffe中数据流通的一个基本类,网络各层之间的数据是通过Blob来传递的。这里整个代码是非常规范的,基本上条件编译,命名空间,模板类,各种不太经常看到的关键 ...
分类:
其他好文 时间:
2018-03-16 18:42:13
阅读次数:
191
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou ...
分类:
其他好文 时间:
2018-03-14 22:11:45
阅读次数:
179
Zbox loves ants题目描述从小热爱生物的Zbox开始观察蚂蚁了.她有一根长度为m的绳子,在最初的时刻,上面分布着n只蚂蚁,她发现,每一只蚂蚁在最初都可能选择任意一个方向爬,爬行的速度始终为1,当有两只蚂蚁相遇时,它们会各自调转方向,以原有的速度继续爬行.Zbox知道,每只蚂蚁随意选择一种 ...
分类:
其他好文 时间:
2018-03-13 21:08:34
阅读次数:
176
感觉很是妙啊……这题数次误入歧途...最开始想的二维dp,单调队列优化;无果,卒。于是没忍住看了下标签:暴力枚举?搜索?于是开始想记忆化搜索。以为会有什么很强的剪枝之类的;30分,卒。最后终于回到正道上:50 0000的数据,只可能有O(n) & O(nlogn)两种复杂度吧?在这样的思想+标签线段 ...
分类:
其他好文 时间:
2018-03-11 23:59:37
阅读次数:
286
http://acm.hdu.edu.cn/showproblem.php?pid=5806 题意:给你一个n元素序列,求第k大的数大于等于m的子序列的个数。 题解:题目要求很奇怪,很多头绪但写不出,选择跳过的题,简称想法题。 首先考虑区间的更新方法:区间左端l不动,右端r滑动, 滑到有k个数>= ...
分类:
其他好文 时间:
2018-03-11 00:18:52
阅读次数:
108
循环层Recurrent Recurrent层 keras.layers.recurrent.Recurrent(return_sequences=False, go_backwards=False, stateful=False, unroll=False, implementation=0) ... ...
分类:
其他好文 时间:
2018-03-10 21:53:36
阅读次数:
4943