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
Post a Comment