Maximizing Python Speed with Numpy: Vectorizing and Broadcasting (Part 3)

Опубликовано: 14 Март 2019
на канале: Software for Science
624
15

In the previous video, we got the our benchmark to 4 seconds. Today, we will show you how to get to 2 seconds.

We will also show you how Sean tried to improve from 2 seconds using a numpy technique—broadcasting the numpy arrays.

We started from 6 minutes and 30 seconds and ended with 2 seconds, a 200 times speed up.

Can you write even faster Python code to beat Sean's benchmark? Leave a comment below and let us know!

0:32 Full vectorized code
2:48 What is broadcasting?

Previous video in the series:
Maximizing Python Speed with Numpy Vectorization (Part 1)
   • Maximizing Python Speed with Numpy Vectori...  

Maximizing Python Speed with Numpy: Complexity (Part 2)
   • Maximizing Python Speed with Numpy: Comple...  

MUSIC
Nimbus by Eveningland
https://www.youtube.com/audiolibrary/...


На этой странице сайта вы можете посмотреть видео онлайн Maximizing Python Speed with Numpy: Vectorizing and Broadcasting (Part 3) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Software for Science 14 Март 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 624 раз и оно понравилось 15 зрителям. Приятного просмотра!