Unable to plot the Accuracy - Deep Learning Course (GUVI) -

Sir,

In the MP Neurons & Perceptron using Python : Epochs class (@ 3:00 mins), Pratyush Sir adds the below code (within the ‘Fit’ Function of the ‘Perceptron’ Class) - to plot the Accuracy of the Model :

plt.plot(accuracy.values()) plt.show()

But adding this code outputs error when we run the below code :

perceptron.fit(X_train, Y_train)

The error we get is :

TypeError: float() argument must be a string or a number, not 'dict_values'

SIr, can you please look into the details & guide accordingly?

Thanks in advance.

Hi,
Please refer the following post: Error in plotting

Thank you for the solution Sir.