Machine Learning Guide cover image

MLA 005 Shapes and Sizes: Tensors and NDArrays

Machine Learning Guide

00:00

Reshaping a One by 100 Vector Into a Ten by 100 Matrix

When you're dealing with natural language processing and recurrent neural networks, some axes are in the wrong spot. The way you solve this problem is by transposing axes or there's a function in numpi called swap axes. One adds a single dimension and the other removes it. So that's shape, shapes of tensers. Now sometimes you have the right shape, but some axes, some dimensions, are in thewrong spot. I think you'll see this situation less commonly, but i've encountered it professionally. And we'll compare these two in a bit.

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