Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Implementing the Basic RNN | Section
Deep Learning for Sequential Data
Seção 1. Capítulo 5
single

single

bookChallenge: Implementing the Basic RNN

Deslize para mostrar o menu

Tarefa

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 5
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt