セクション 1. 章 5
single
Challenge: Implementing the Basic RNN
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
-
Define the
SimpleRNNclass, completing its__init__method to set up thenn.RNNandnn.Linearlayers, and implement its forward method to process input sequences. -
Instantiate the
SimpleRNNmodel, then define thenn.CrossEntropyLosscriterion andtorch.optim.Adamoptimizer. -
Implement the training loop to perform forward and backward passes, update model parameters, and include a simple evaluation after training.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 5
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください