- 博客(13)
- 资源 (5)
- 收藏
- 关注
原创 pytorch中RNN,LSTM,GRU使用详解
RNNCellnn.RNNCell(input_size, hidden_size, bias=True, nonlinearity=‘tanh’)h′=tanh(Wihx+bih+Whhh+bhh)h^{\prime}=\tanh \left(W_{i h} x+b_{i h}+W_{h h} h+b_{h h}\right)h′=tanh(Wihx+bih+Whhh+bhh)...
2019-05-04 16:16:53 27933 7
原创 向量和矩阵范数
向量范数X=(x1,x2,…,xn)TX=\left(x_{1}, x_{2}, \ldots, x_{n}\right)^{T}X=(x1,x2,…,xn)T一阶范数∥X∥1=∑i=1n∣xi∣=∣x1∣+∣x2∣+…+∣xn∣\|X\|_{1}=\sum_{i=1}^{n}\left|x_{i}\right|=\left|x_{1}\right|+\left|x_{2...
2019-05-02 19:11:28 229
原创 Text-Guided Attention Model for Image Captioning
In our approach, we leverage a guidance captions as associated text language to steer visual attention. Our image captioning network is trained to minimize the following loss:1.给定一张图片,从训练集中选择一张相...
2019-02-28 21:56:58 460 1
原创 爬取CV三大顶会CVPR,ECCV,ICCV论文并做成CSV方便查询
代码:https://github.com/kangkang59812/crawl_paper.gitcsv下载地址:https://download.csdn.net/download/lkangkang/10927923
2019-01-19 18:43:14 1966
原创 Tensorflow1.8用keras实现MNIST数据集手写字体识别例程(二)
这次使用CNN。只需将我上一篇Tensorflow1.8用keras实现MNIST数据集手写字体识别例程中的MLP()替换为CNN()即可。class CNN(tf.keras.Model): def __init__(self): super().__init__() self.conv1 = tf.keras.layers.Conv2D( ...
2018-10-01 12:17:13 873
原创 Tensorflow1.8用keras实现MNIST数据集手写字体识别例程
import tensorflow as tftf.enable_eager_execution()eager是新版本加入的动态图,可以直接计算出结果而不用使用Session。同时也支持微分操作。class DataLoader(): def __init__(self): mnist = tf.contrib.learn.datasets.load_data...
2018-10-01 11:22:34 1487 1
原创 CodeWars:[5 kyu] The Hashtag Generator
The marketing team is spending way too much time typing in hashtags.Let's help them with out own Hashtag Generator!Here's the deal: //将字符串去掉空格,以‘#’打头,并且大写每个单词的首字母。 It must start with a hashta...
2018-09-17 22:00:20 407
原创 CodeWars: [5 kyu] Perimeter of squares in a rectangle
The drawing shows 6 squares the sides of which have a length of 1, 1, 2, 3, 5, 8. It's easy to see that the sum of the perimeters of these squares is : 4 * (1 + 1 + 2 + 3 + 5 + 8) = 4 * 20 = 80//给出了...
2018-09-16 11:34:39 775
原创 CodeWars:What's a Perfect Power anyway?
A perfect power is a classification of positive integers:In mathematics, a perfect power is a positive integer that can be expressed as an integer power of another positive integer. More formally, ...
2018-09-15 11:53:39 841
原创 CodeWars:Decode the Morse code
Part of Series 1/3This kata is part of a series on the Morse code. After you solve this kata, you may move to the next one.In this kata you have to write a simple Morse code decoder. While the Mo...
2018-09-14 10:14:53 1140 1
原创 CodeWars:Double Cola
Sheldon, Leonard, Penny, Rajesh and Howard are in the queue for a "Double Cola" drink vending machine; there are no other people in the queue. The first one in the queue (Sheldon) buys a can, drinks i...
2018-09-13 14:33:01 438
深度学习入门:基于Python的理论与实现
2018-08-25
Python语言及其应用
2018-08-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人