I am going thru some code
y_enc = np.eye(21)[label]
where label is ndarray of shape (224, 224) y_enc is ndarray of shape (224, 224, 21)
Even with the shapes printed, I am having trouble understanding this statement. np.eye is supposed to generate a diagonal matrix of dimension 21 x 21. what does it mean to have [label] following it?