mnist-sklearn icon indicating copy to clipboard operation
mnist-sklearn copied to clipboard

Updated version?

Open AoifeMarieDoherty opened this issue 4 years ago • 1 comments

Could I ask, is there plans to update this code to work in 2020/python3 (or should it work)?

I'm desperately trying to increase my MNIST data set for an assignment, see:

https://stackoverflow.com/questions/65142970/reshape-and-write-imagedatagenerator-output-to-csv-file

(for desperation on how to increase the data set) and then:

https://stackoverflow.com/questions/65143325/convert-mnist-data-set-from-csv-to-ubyte-format

to convert back to original format, and I thought this code would solve my issues, but I'm getting:

2020-12-05 10:08:16,059 : INFO : reading original input data from disk Traceback (most recent call last): File "expanding_mnist.py", line 39, in X_train_full, y_train_full, X_test = utils.load_np_arrays() AttributeError: module 'utils' has no attribute 'load_np_arrays'

and I'm not sure if it's because the code is old.

AoifeMarieDoherty avatar Dec 05 '20 10:12 AoifeMarieDoherty

Hi @AoifeMarieDoherty 👋 I don't have any plans to update this code. Based on the traceback you've included, it looks to me like you may have taken some of the code in expand-np-arrays.py and added it to a new file named expanding_mnist.py? If that's the case, I think the AttributeError is suggesting that you have an import or shadowing issue with the variable utils. As written here, utils should be the adjacent module in this repo, which is imported earlier. If you happen to have another utils in your current runtime namespace, it might not correctly resolve the load_np_arrays() function defined in this repo.

jrmontag avatar Dec 06 '20 01:12 jrmontag