rougier / numpy-100

100 numpy exercises (with solutions)
MIT License
12.17k stars 5.74k forks source link

Update 100_Numpy_exercises_with_solutions.md #186

Open rashedman opened 2 years ago

rashedman commented 2 years ago

22. Normalize a 5x5 random matrix (★☆☆)

The formula for calculating normalized score: X new = (X — X min)/ (X max — X min)

rougier commented 2 years ago

The term "normalize" might be confusing but the goal is to have a resulting matrix with mean=0 and std=1.

rashedman commented 2 years ago

The term "normalize" might be confusing but the goal is to have a resulting matrix with mean=0 and std=1.

image https://www.youtube.com/watch?v=2tuBREK_mgE&list=PL0KQuRyPJoe6KjlUM6iNYgt8d0DwI-IGR&index=20&t=198s You need to watch this video You have confused normalization with standardization

rougier commented 2 years ago

The other name is "Z-score normalization". Can you modify your PR to insert standardize then? Also, you need to make the PR on the generic file since all the .md .ipynb are genereted from this file.