Machine Learning Guide cover image

MLA 005 Shapes and Sizes: Tensors and NDArrays

Machine Learning Guide

00:00

Reshape, New Shape and New Number of Dimensions

The re shape function is the general purpose function that allows you to perform a lot of these functions that have dedicated names. And so what they'll do is n p, dot a range, and then in parentheses, a hundred. You can also use reshape to add additional dimensions, remove unneeded dimensions and things like this. Now lets say we have too many dimensions. Squeeze that last dimension out. So squeeze removes one shape dimensions. It's the reverse of expand dims. The general form for all is just m p dot re shape.

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