The following code generated an image:
norm = colors.LogNorm(1e-7, weights.max())
im = plt.imshow(weights,norm=norm,cmap=cm.jet)
I have access to the image, but not to the weights.
I want to be able to reconstruct the weights. Is there anyway to do so?