Write dot(u, v): raise ValueError("shape mismatch") if lengths differ, otherwise return the pairwise-multiply-and-sum. Then score all three rows of X against w and print the prediction list.
Write dot(u, v): raise ValueError("shape mismatch") if lengths differ, otherwise return the pairwise-multiply-and-sum. Then score all three rows of X against w and print the prediction list.