nicodjimenez / lstm

Minimal, clean example of lstm neural network training in python, for learning purposes.
1.72k stars 654 forks source link

I have a question of ds,how to compulete ds? #39

Open kaikai-sk opened 6 years ago

kaikai-sk commented 6 years ago

def top_diff_is(self, top_diff_h, top_diff_s):

notice that top_diff_s is carried along the constant error carousel

ds = self.state.o * top_diff_h + top_diff_s

this is your code above. I wanna ask why plus top_diff_s? I am not understand your comment .