greydanus / mnist1d

A 1D analogue of the MNIST dataset for measuring spatial biases and answering Science of Deep Learning questions.
Apache License 2.0
199 stars 33 forks source link

mnist1d package does not expose __version__ #14

Closed psteinb closed 1 month ago

psteinb commented 2 months ago

Just stumbled upon this while testing an environment:

import mnist1d
print("mnist1d installed, ", mnist1d.__version__)

which gave

Traceback (most recent call last):
  File "somewhere/00_intro2ml_envcheck.py", line 45, in <module>
    print("mnist1d installed, ", mnist1d.__version__)
                                 ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'mnist1d' has no attribute '__version__'

Would be great to add this.

greydanus commented 1 month ago

I just added a fix to this effect. Will try and add it to the pip package eventually too

psteinb commented 1 month ago

Sounds great! Thanks.