22.02.2024 Views

Daniel Voigt Godoy - Deep Learning with PyTorch Step-by-Step A Beginner’s Guide-leanpub

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 8.17 - The path of the hidden state

The red square at the center shows the [-1, 1] bound given by the hyperbolictangent

activation. Every hidden state (the last point of a given color [corner]) will

be inside or at the edge of the red square. The final position is depicted by a star.

Can We Do Better?

There are a couple of questions I’d like to raise:

• What if the previous hidden state contains more information than the newly

computed one?

• What if the data point adds more information than the previous hidden state

had?

624 | Chapter 8: Sequences

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!