Skip to content
Snippets Groups Projects

[feature] measure performance and save to a file

Merged Tinsaye Abye requested to merge 4-performance-evaluation into develop
4 files
+ 93
31
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 20
0
import matplotlib.pyplot as plt
import pandas as pd
file = "tfidf-2020May-291539"
def plotData(data):
data.set_index("threshold", inplace=True)
data.plot()
plt.axes().yaxis.grid(True)
plt.show()
plt.close("all")
data = pd.read_csv(file + ".csv")\
[["threshold", "precision", "recall", "fMeasure", ]]
plotData(data)
Loading