Loading...

ndarray

NumPy's N-dimensional array - homogeneous, fixed-size, contiguous memory.

When to use: Any numerical pipeline; preprocessing, batches, intermediate tensors.

Example: np.zeros((32, 3, 224, 224), dtype=np.float32) → 32-image batch, ~19 MB.

More Python for ML Glossary terms