Cartesian product
Say it “A cross B”
All ordered pairs with the first from A and the second from B.
Example
All possible (input, label) pairs.
In code
itertools.product(A, B)Where you’ll see it in ML
A dataset is a sample from 𝒳 × 𝒴. Also why matrix shapes are written m × n.