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...

ความคิดเห็น • 11

  • @RahulKumar-xb2js
    @RahulKumar-xb2js 2 ปีที่แล้ว +1

    thank for some mere enlightment about numbers!

  • @ahmetdeniz2532
    @ahmetdeniz2532 2 ปีที่แล้ว

    Thanks for your explanation. 👍

  • @michaelfayemiwo6956
    @michaelfayemiwo6956 2 ปีที่แล้ว

    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?

  • @texasfossilguy
    @texasfossilguy 2 ปีที่แล้ว

    Everything is fractal, nothing is really random.

  • @enocholuwumi1870
    @enocholuwumi1870 2 ปีที่แล้ว

    Oh no! 42 Oh no! I feel sad for myself too... 😢😢 😉

  • @fburton8
    @fburton8 2 ปีที่แล้ว

    Did you know that you can make patterns appear in the random noise on a tv screen just by thinking about them?

    • @DigitalSreeni
      @DigitalSreeni  2 ปีที่แล้ว +1

      Yes, of course... depends on your imaginative power!!!

    • @fburton8
      @fburton8 2 ปีที่แล้ว

      @@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.