Seksjon 1. Kapittel 6
single
Challenge: Initializing Model Weights and Biases
Sveip for å vise menyen
Oppgave
Sveip for å begynne å kode
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).
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 6
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår