AI & ML

Machine Learning

Step-by-step articles on Machine Learning, part of our AI & ML collection.

  • 13 articles
  • 52 min of reading
  • 1 sub-topic
  • 02 Dec, 2026 last updated

Showing 13 articles

PyTorchNew 4 min read

Broadcasting in PyTorch With Clear Rules

Broadcasting is how PyTorch performs element-wise operations on tensors of different shapes without copying data. The smaller tensor is virtually stretched to match the larger one. It is powerful and compact, but it can also hide bugs, so you need to know the...

08 Nov, 2026 Jai Singh 16 0
Read article
PyTorch 4 min read

Indexing and Slicing PyTorch Tensors

PyTorch tensors support the same indexing syntax as NumPy: integers pick a position, slices pick a range, boolean masks pick elements that satisfy a condition, and lists or tensors of integers pick arbitrary positions. Mastering these lets you pull out batches...

31 Oct, 2026 Jai Singh 38 0
Read article
PyTorch 4 min read

PyTorch Tensors: Creating Them Five Ways

A tensor is PyTorch's n-dimensional array: a scalar is 0-D, a vector 1-D, a matrix 2-D, and a batch of images is usually 4-D. You can create tensors from existing Python data, filled with constants, with random numbers, from numeric ranges, or by copying the s...

23 Oct, 2026 Jai Singh 31 0
Read article
PyTorch 4 min read

How to Install PyTorch and Check Your Setup

The easiest way to install PyTorch is inside a virtual environment, using the command generated by the selector on the official pytorch.org "Get Started" page. That page matches your operating system, package manager and compute platform (CPU or a specific CUD...

18 Oct, 2026 Jai Singh 36 0
Read article