-
Hi there, I have two questions regarding the (global) random seed:
Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey there, great questions, I'll answer both.
When models get created, they get randomly initialized with different weights and biases (I often refer to these as patterns but their proper terms are weights and biases). What this means is:
And it keeps repeating that cycle until it finds ideal patterns (weights and biases) to represent the data it's looking at. The random seed for creating a model means that the model starts with the same random numbers to begin with and then adjusts them in the same fashion whilst it looks at the data each time. This is not 100% necessary but it makes sure the numbers I get on the screen are as close as possible to the numbers on your screen. Otherwise, because of the inherent randomness of machine learning, we'd get slightly different results each time.
Think of each notebook cell as its own program. Each time you run a cell, it runs and then it's done. The variables stick around but the seed doesn't. That's why we need to set the random seed each time we initialize something new. Let me know if anything needs clarifying. |
Beta Was this translation helpful? Give feedback.
Hey there, great questions, I'll answer both.
When models get created, they get randomly initialized with different weights and biases (I often refer to these as patterns but their proper terms are weights and biases).
What this means is:
And it keeps repeating that cycle until it finds ideal patterns (weights and biases) to represent the data it's looking at.
The random seed for creating a model means that the model starts with the…