CHAPTER 4: MNIST Research

Topic to discuss issues and the Suggested Research on Chapter 4.

  • List Sorted
  • matplotlib.axes._subplots.AxesSubplot at 0x7f136d76b6d0

Strings are sorted like the words are arranged in a real world dictionary,
a
aa
abc

If you have numbers stored as strings, they are considered same as any other character.
Screenshot_19

1 Like

Yes, but Is it what they intended to do also in the chapter 4, to sort in that way? if so , I am not understanding why we should order in that way.

You don’t need to sort it, it was sorted because if you run the code in your machine you may get different order depending upon how your os/python behaves, to avoid it they sorted it.

1 Like

thank you so much @vijayabhaskar

1 Like

Here when I tried to display
show_image(tensor) it gives me this error matplotlib.axes._subplots.AxesSubplot at 0x7f136d76b6d0
image
I am using probably not a black and white picture, but maybe it has the RGB Channel since I see three level, could be possible?