Challenge: Initializing Model Weights and Biases
Завдання
Swipe to start coding
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
3x4
tensor filled with random values from a uniform distribution between0
and1
(weights for the first layer). - Create a
1x4
tensor filled with zeros (biases for the first layer). - Create a
4x2
tensor with random integers between-5
and5
(weights for the second layer).
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 6
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 5
Challenge: Initializing Model Weights and Biases
Свайпніть щоб показати меню
Завдання
Swipe to start coding
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
3x4
tensor filled with random values from a uniform distribution between0
and1
(weights for the first layer). - Create a
1x4
tensor filled with zeros (biases for the first layer). - Create a
4x2
tensor with random integers between-5
and5
(weights for the second layer).
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Awesome!
Completion rate improved to 5Секція 1. Розділ 6
single