I have also included this code but it is not work, plt.plot(np.array(list(loss.values())).astype(float) , now how to solve this issue

Can you share screenshot after expanding the errors (click 8 frames to do that)?

You can share a link to your notebook and somebody can look at the code.


check this thread: dict_values error


I too encountered the same issue.

Rather than using a dict to store loss values, you could just simply store it in a list.

And thereby, hwile plotting,

can just simply write-→ plt.plot(loss)