I am having trouble loading in my own data for Homework 3.2, Minibatch stochastic gradient descent (SGD). In the sample code you provided in the notebook, MNIST data is loaded in the main function using the following code:
I tried replacing "datasets.MNIST('../data', train=True, download=True, transform=transform)" with my own dataset (train_data and test_data) , which leads to error. Can you give me a sample code of loading my own data into the main function? What parameters do I need to change?
Hi Bhargav and Likun,
I am having trouble loading in my own data for Homework 3.2, Minibatch stochastic gradient descent (SGD). In the sample code you provided in the notebook, MNIST data is loaded in the main function using the following code:
I tried replacing "datasets.MNIST('../data', train=True, download=True, transform=transform)" with my own dataset (train_data and test_data) , which leads to error. Can you give me a sample code of loading my own data into the main function? What parameters do I need to change?
Thank you!