The Real Python Podcast cover image

Using NumPy and Linear Algebra for Faster Python Code

The Real Python Podcast

00:00

Using Vectorized Operations to Find Distances Between Things

When I think about this, this idea of the subtraction thing and trying to find distances between things, that applies to these models. And then that's why you're making, going back to our previous conversations, these words into vectors and so forth. It's actually very interesting as well. So basically, you can get a lot of performance gains with these sort of vectorized operations because you get rid of the sequential element. But beyond a certain point, it's still too costly to calculate every single comparison.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app