| ▲ | LLMs all fail this NumPy indexing example | |||||||
| 6 points by minihat 9 months ago | 3 comments | ||||||||
When mixing basic slicing with an advanced index, NumPy moves the advanced index's subspace to the front, so in the example, A[0, :, B] produces a shape of (4, 2) rather than (2, 4).
So far every LLM I've tried (Grok 3, o1, Gemini Pro) all predict (2, 4) and can't be persuaded otherwise. | ||||||||
| ▲ | dekhn 9 months ago | parent | next [-] | |||||||
So what? | ||||||||
| ||||||||
| ▲ | peterramsing 9 months ago | parent | prev [-] | |||||||
[dead] | ||||||||