On 1/7/23, Undescribed Horrific Abuse, One Victim & Survivor of Many <gmkarl@gmail.com> wrote:
with 3 examples (i added one for sorting) it gives a correct answer on colab
npapi.set_example( '''Construct an array B that repeats array Y 4 times along the last dimension.''', '''B = np.tile(Y, 4)''' ) npapi.set_example( '''Swap the last two axes of an array D.''', '''D = D.swapaxes(-2, -1)''' ) npapi.set_example( '''Sort an array along the third axis.''', '''array.sort(3)''' )
Reverse an array C.: 'C = np.flipud(C)'
I didn't even know about the flipud function until now, which appears to default to selecting the outermost axis rather than all of them. This is likely the meaning of the word reverse.
it is no longer producing this output, even when returning to the old commit, although other state changes remain untried. the time of the email is Sat, Jan 7, 2023 at 11:23 AM for me.