22.02.2024 Views

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Visualizing Predictions

Let’s plot the predicted coordinates and connect them using dashed lines, while

using solid lines to connect the actual coordinates, just like before:

fig = sequence_pred(sbs_seq_selfattnpe, full_test, test_directions)

Figure 9.50 - Predicting the last two corners

Awesome, it looks like positional encoding is working well indeed—the predicted

coordinates are quite close to the actual ones for the most part.

Positional Encoding (PE) | 781

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

Saved successfully!

Ooh no, something went wrong!