Last_Question_graph(5)

 #!/usr/bin/env python

# coding: utf-8

# In[13]:


import numpy as np
import matplotlib.pyplot as plt
data= {'KNN':0.95, 'Naivebayes': 0.9125, 'DecisionTree': 0.92, 'Randomforest':0.9125, 'SVM' :0.9125}
courses = list(data.keys())
values= list(data.values())
fig = plt.figure(figsize = (10,5))
plt.bar(courses, values, color= 'red', width= 0.2)
plt.xlabel("Different classifier")
plt.ylabel("Accuracy_score")
plt.title("classifdier and their accuracy score")
plt.show()


# In[ ]:





Comments

Popular posts from this blog

1.Import and Export(How to read csv file using manualvfunction)

How to became a junior Engineer

K Means_Clustering