0
Hello,
I have a dictionary of the type: and I would like to print a line chart with the key k as x and v as y.
tried a lot of things but keep 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'
What is the dictionary structure ?
– Edilson