Hello,
I have a dictionary of type: and I would like to print a line chart with the key k as x and v as y.
I tried a number of things but kept getting errors:
plt.plot(lr.keys(),lr.values())
plt.title('ID modelo:'+str(Index)+' model accuracy')
plt.ylabel('accuracy')
plt.xlabel('epoch')
plt.legend(['train', 'test'], loc='upper left')
plt.savefig('ID modelo:'+str(Index)+' model accuracy.png')
plt.clf()
TypeError: float () argument must be a string or a number, not 'dict_keys'