[ot][spam][crazy] coping spam while trying to make code to prompt a model
Undescribed Horrific Abuse, One Victim & Survivor of Many
gmkarl at gmail.com
Sat Jan 7 08:23:15 PST 2023
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.
More information about the cypherpunks
mailing list