explain this in simple term: Reproducibility of numbers At this point in the book, you…
- User
explain this in simple term:
Reproducibility of numbers At this point in the book, you may notice that you don’t always get the exact same results I do. You may sometimes get very different-looking results. This is normal and OK. The initial weights for every neural network are random values, and a different set of initial random values may give you a different result. Don’t let that scare you off; getting used to the variability in results can be valuable. If you know about random seeds, you may be thinking, “If you set a random seed so that you know what the random results will be, wouldn’t that solve the problem?” This is correct at a high level, but unfortunately, the result of the layers in PyTorch are not always deterministic. They often exploit hardware-specific optimizations that can slightly alter the results and even change from run to run in odd circumstances. PyTorch is working on supporting more deterministic behavior, but it doesn’t work for everything yet, and it doesn’t work for all versions of CUDA. If I tried to enable it, it might make everything stop working for you. So, unfortunately, we are stuck with slightly different results every time you run the code. Another option would be to run each experiment 5 to 15 times and plot the average result with error bars to show the variance of what can happen. But then the code samples would take 5 to 15 times longer to run. I’ve chosen to run things once to keep the time reasonable
- Assistant