DeepLearningPython
DeepLearningPython copied to clipboard
'zip' object is not subscriptable
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.
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)