Sección 1. Capítulo 6
single
Challenge: Initializing Model Weights and Biases
Desliza para mostrar el menú
Tarea
Desliza para comenzar a programar
You are tasked with creating random tensors to initialize weights and biases for a simple neural network.
- Ensure reproducibility by setting a manual seed to an arbitrary number before generating the tensors.
- Create a
3x4tensor filled with random values from a uniform distribution between0and1(weights for the first layer). - Create a
1x4tensor filled with zeros (biases for the first layer). - Create a
4x2tensor with random integers between-5and5(weights for the second layer).
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 6
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla