Abschnitt 1. Kapitel 5
single
Challenge: Implementing the Basic RNN
Swipe um das Menü anzuzeigen
Aufgabe
Swipe to start coding
-
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 5
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen