Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Implementing the Basic RNN | Section
Deep Learning for Sequential Data
Секція 1. Розділ 5
single

single

bookChallenge: Implementing the Basic RNN

Свайпніть щоб показати меню

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 5
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt