Sign up or log in to watch the video
Vectorize all the things! Using linear algebra and NumPy to make your Python code lightning fast.
Jodie Burchell - 11 months ago
Have you found that your code works beautifully on a few dozen examples, but leaves you wondering how to spend the next couple of hours after you start looping through all of your data? Are you only familiar with Python, and wish there was a way to speed things up without subjecting yourself to learning C? In this talk, you'll see some simple tricks, borrowed from linear algebra, which can give you significant performance gains in your Python code, and how you can implement these in NumPy. We'll start exploring an inefficient implementation of an algorithm that relies heavily on loops and lists, and iteratively replace bottlenecks with NumPy vectorized operations. At each stage, you'll learn the linear algebra behind why these operations are more efficient so that you'll be able to utilize these concepts in your own code. You'll see how straightforward it can be to make your code many times faster, all without losing readability or needing to understand complex coding concepts.
Jobs with related skills
Field Application Engineer (FAE) (m/w/d)
Lauterbach GmbH
·
13 days ago
Höhenkirchen-Siegertsbrunn, Germany
Hardware Entwickler/Test Ingenieur (m/w)Embedded Systems
ABUS Security Center GmbH & Co. KG
·
1 month ago
Affing, Germany
Hybrid
AI Engineer
GEMESYS GmbH
·
1 month ago
Bochum, Germany
Project Engineer Digital Solutions (m/w/d)
Uhlmann Pac-Systeme GmbH & Co. KG
·
1 month ago
Laupheim, Germany
Related videos