Random is not so random - understanding random in python
ฝัง
- เผยแพร่เมื่อ 4 ก.ย. 2024
- Part of the Tips and tricks series - Number: 30
Random gets used quite often in python for data analysis and machine learning. This is an explainer video on the topic of 'random' and random seeds. Also, learn about the birthday paradox.
Python random uses Mersenne Twister algorithm:
en.wikipedia.o...
Numpy random uses the Permuted congruential generator algorithm:
en.wikipedia.o...
More about the Birthday paradox/problem:
en.wikipedia.o...
thank for some mere enlightment about numbers!
My pleasure!
Thanks for your explanation. 👍
Hi Sir, thank you for your youtube videos; they are very helpful. How can one use GAN to generate new images for both the data and the ground truth labels for the data used in your video 216? Can you make a video on it?
Everything is fractal, nothing is really random.
Oh no! 42 Oh no! I feel sad for myself too... 😢😢 😉
You did great sir! Thanks for the peptalk!
:)
Did you know that you can make patterns appear in the random noise on a tv screen just by thinking about them?
Yes, of course... depends on your imaginative power!!!
@@DigitalSreeni I think it goes a bit further than just imagining, because once you have created the pattern (through imagination!) it persists and actually appears to be really there in the ‘snow’. Then it doesn’t take any effort of imagination to maintain it, although it may move around or morph into a different pattern more or less spontaneously. I used to play/experiment with this phenomenon on detuned analog televisions (showing my age), but was able to repeat it using ‘random’ snow movies made using MATLAB. I found there are limits to the complexity of what can be created: in my case, simple geometric figures like concentric circles rotating in opposite directions or a square with a triangle on top. You’d think that creating faces would be easy, but I didn’t find that to be the case. Anyway, this is way off topic. Thank you for making these very useful and interesting videos.