DeepLearningPython icon indicating copy to clipboard operation
DeepLearningPython copied to clipboard

'zip' object is not subscriptable

Open hisham32 opened this issue 5 years ago • 1 comments

I am getting the error 'zip object is not subscriptable' when I run the following command in python 3:

net.SGD(training_data[:1000], 10, 10, 0.5, evaluation_data=test_data, lmbda = 0.1, # this is a regularization parameter monitor_evaluation_cost=True, monitor_evaluation_accuracy=True, monitor_training_cost=True, monitor_training_accuracy=True)

I have tried changing the mnist_loader by wrapping the zip commands with list, but it's not working.

hisham32 avatar Mar 31 '19 02:03 hisham32

Hi @hisham32 could you resolve this error?

Try:

import mnist_loader training_data, validation_data, test_data = mnist_loader.load_data_wrapper() training_data = list(training_data)

callezenwaka avatar Apr 15 '20 17:04 callezenwaka