I want to visualize a python list where each element is a torch.FloatTensor variable.
Lets say that the list is stored in Dx. When I am trying the following
plt.figure()
plt.plot(Dx)
I am getting the following error:
ValueError: x and y can be no greater than 2-D, but have shapes (1200,) and (1200, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
Can somebody please throw some light.
Or, if somebody can give me some guidance on how to plot these kinds of lists which contain error rates of a model. I just wanted an iteration wise plot.