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

single

bookChallenge: Implementing the Basic RNN

Veeg om het menu te tonen

Taak

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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 5
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

some-alt