Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

realization of two networks #773

Closed
wants to merge 2 commits into from
Closed

realization of two networks #773

wants to merge 2 commits into from

Conversation

denglelaibh
Copy link

Here I realized two networks, a lstm based teach_read network, and resNet 2016, would you please check it and judge if it's ok to add in the model repo.

@qingqing01 qingqing01 requested a review from wanghaoshuang April 3, 2018 04:04
@qingqing01 qingqing01 self-requested a review April 13, 2018 07:39
Copy link
Collaborator

@qingqing01 qingqing01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@denglelaibh 非常感谢你的贡献!

我看到这个PR有3个模型:

  • drn
  • teach_read
  • text_cnn_classify

为了review方便,请分别提PR。

另外,drn主要是增加了identity_resnet吧? 这个加到https://github.com/PaddlePaddle/models/blob/develop/image_classification 是否合适?


(2)对于任意深的单元 **L**,它的特征 <img src="https://latex.codecogs.com/gif.latex?$x_L&space;=&space;x_0&space;&plus;&space;\sum_{i=0}^{L−1}F(x_i,W_i)$" title="$x_L = x_0 + \sum_{i=0}^{L−1}F(x_i,W_i)$" />,即为之前所有残差函数输出的总和(加上<img src="https://latex.codecogs.com/gif.latex?$x_0$" title="$x_0$" />)。而正好相反的是,“plain network”中的特征<img src="https://latex.codecogs.com/gif.latex?$x_L$" title="$x_L$" />是一系列矩阵向量的乘积,也就是<img src="https://latex.codecogs.com/gif.latex?$\prod_{i=0}^{L−1}W_i&space;x_0$" title="$\prod_{i=0}^{L−1}W_i x_0$" />,而求和的计算量远远小于求积的计算量。

实验发现,<img src="https://latex.codecogs.com/gif.latex?$h(x_l)&space;=&space;x_l$" title="$h(x_l) = x_l$" />的误差衰减最快,误差也最低(下图a子图所示):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

公式不能使用图片格式,需要latext格式。 上面所有公式都需要修改。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

但是latex公式在网页版无法预览

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@denglelaibh 浏览器添加公式渲染的插件即可,比如采用chrome插件https://chrome.google.com/webstore/detail/github-with-mathjax/ioemnmodlmafdkllaclgeombjnmnbima

@@ -0,0 +1,79 @@
import paddle.v2 as paddle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是一样的

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那drn这个:

drn主要是增加了identity_resnet吧? 这个加到https://github.com/PaddlePaddle/models/blob/develop/image_classification 是否合适?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants