Skip to content
ml-recall

#boolean-indexing

1 question from NumPy

Timed test

1 question · 1 min · score and explanations at the end

Take a test
Q 1 / 1Score 0 / 0

Question 1: Short answer

mediumAI-checkedNumPy

What is neg.shape?

a = np.array([[1, -2], [-3, 4]])
neg = a[a < 0]

A shape in parentheses, e.g. (5,) or (5, 6)