Python NumPy For Your Grandma - 3.7 random

Опубликовано: 20 Январь 2021
на канале: GormAnalysis
1,271
20

In this video, we’ll see how you can use NumPy's random module to shuffle arrays, sample values from arrays, and draw values from a host of probability distributions. And then we'll see why everything I just showed you is deprecated, and how to updated it to modern standards :)

0:00 - intro / setup
0:15 - sample ints with replacement / np.random.randint()
0:48 - random number seed / np.random.seed()
1:21 - sample without replacement / np.random.choice()
4:01 - sample rows from array
6:13 - shuffle (permute) rows of array / np.random.permutation()
6:45 - probability distributions
6:59 - uniform distribution / np.random.uniform()
7:12 - normal distribution / np.random.normal()
7:30 - binomial distribution / np.random.binomial()
7:56 - motivation for generic Generator class
10:06 - default random generator / np.random.default_rng()

-- Code -----------------------
https://www.practiceprobs.com/problem...

-- Vids & Playlists ---------------------------------
Google Colab -    • Introduction to Google Colab  
NumPy -    • Python NumPy For Your Grandma  
Pandas -    • Python Pandas For Your Grandpa  
Neural Networks -    • Neural Networks For Your Dog  

-- Subscribe To Mailing List ---------------------------------
https://eepurl.com/hC1Pmj

-- Support -----------------------
https://merchonate.com/gormanalysis