Comments (5)
Hi Gisselle,
Your understanding is right, there are three Weight matrixes all the time.
The weights['in'] you have seen in the example is W_hx, weights['out'] is
W_yh. The third one W_hh is in the cell, we just need to define the hidden
units size for the cell instead of defining W_hh.
Hope this would help you.
Regards,
Morvan
On 28 October 2016 at 11:45, Gissella Bejarano [email protected]
wrote:
Hi,
Can you recommend any source to try to understand the real architecture
done with tensorflow in the classification of RNN (MNIST). I thought that
the simplest RNN would work with 3 Weight matrixes. W_hx, W_hh and W_yh but
I just saw two in the tutorial and I don't understand very well why.Regards,
Gissella B.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#19, or mute the thread
https://github.com/notifications/unsubscribe-auth/ASgmNEi3BByT-mLPOOsCKV-mBGvCavzXks5q4UXBgaJpZM4Ki-Qd
.
from tutorials.
Oh, I see..thanks for the explanation!
So BasicLSTMCell() would create a hidden recurrent layer which would create the W_hh matrix? One more question. I have a testSet of different size of a batch size... is there a way to change the batchsize we used here: lstm_cell.zero_state(batch_size, dtype=tf.float32)?
Regards,
Gissella B.
from tutorials.
BasicLSTMCell() would create a hidden recurrent layer which would create
the W_hh matrix?
Answer: Yes, it will.
I have a testSet of different size of a batch size... is there a way to
change the batchsize we used here: lstm_cell.zero_state(batch_size,
dtype=tf.float32)?
Answer: I also faced this issue (my issue is the different time_steps in
training and testing), and my solution is to create a test-RNN with new
parameters and restore the Weights and biases from a saved Train-RNN. I
don't think this is a good solution but I don't see other better answers.
On 29 October 2016 at 01:07, Gissella Bejarano [email protected]
wrote:
Oh, I see..thanks for the explanation!
So BasicLSTMCell() would create a hidden recurrent layer which would
create the W_hh matrix? One more question. I have a testSet of different
size of a batch size... is there a way to change the batchsize we used
here: lstm_cell.zero_state(batch_size, dtype=tf.float32)?Regards,
Gissella B.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#19 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASgmNKc5kHMWrllKjhC3QqjPZBxnFi2hks5q4gG4gaJpZM4Ki-Qd
.
from tutorials.
Thank you. I managed to fixed the time_steps of all my instances and I am doing cross validation so I can have equal-size training batchs and test batch. I'm still looking for an example to manage different time_steps, there should be a more formal solution than the one you mention right? What if instances in the same training set has different time_steps?
from tutorials.
I figured out a new method to deal with the different time steps by using variable_scope: https://github.com/MorvanZhou/tutorials/blob/master/tensorflowTUT/tf22_scope/tf22_RNN_scope.py
from tutorials.
Related Issues (20)
- visualize cpu history HOT 3
- lstm的batch_size要刚好被数据集整除么 HOT 1
- tensorflowTUT/tf12_plot_result/full_code.py NameError: name 'time' is not defined HOT 3
- ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)5-classifier_example.py
- 有没有读取自己的图像训练集的代码呀
- 您好,sk9_cross_validation2.py中的实例在python3.6.6中运行报错
- Classification那一课 HOT 1
- 为什么我的没有画线 HOT 9
- 在tensorflow中的dropout中修改建议 HOT 1
- 建议
- 激活函数
- pandas values HOT 4
- 推荐增加一些简易的新算法
- 求助一下 tensorflow是2.0.0的 报错train中没有GradientDescentOptimizer
- 请问强化学习是怎么影响神经网络参数的
- Is this your website? https://www.echenshe.com/class/tensorflow/ HOT 1
- Qw
- tensorflow 还支持另外一种batch normalization 的方法 HOT 2
- tensorflow 2.1.0 error HOT 3
- 网站进不去了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tutorials.