Секція 1. Розділ 6
single
Challenge: Initializing Model Weights and Biases
Свайпніть щоб показати меню
Завдання
Проведіть, щоб почати кодувати
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).
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 6
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат