Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Implementing the Basic RNN | Section
Deep Learning for Sequential Data
Section 1. Chapitre 5
single

single

bookChallenge: Implementing the Basic RNN

Glissez pour afficher le menu

Tâche

Swipe to start coding

  1. Define the SimpleRNN class, completing its __init__ method to set up the nn.RNN and nn.Linear layers, and implement its forward method to process input sequences.

  2. Instantiate the SimpleRNN model, then define the nn.CrossEntropyLoss criterion and torch.optim.Adam optimizer.

  3. Implement the training loop to perform forward and backward passes, update model parameters, and include a simple evaluation after training.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 5
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

some-alt