Commit f17404f0 authored by E144069X's avatar E144069X

Removed title, save prior data, plot number instead of probability

parent bd31e901
......@@ -367,14 +367,15 @@ def plotData(nbClass,dataset):
nbImages += len(load_data.getGT(os.path.splitext(os.path.basename(videoPath))[0],dataset))
plt.figure()
plt.bar(np.arange(nbClass),priors)
plt.bar(np.arange(nbClass),priors*nbImages)
plt.xticks(np.arange(nbClass),labels,rotation=45)
plt.xlabel("Developpement phases")
plt.ylabel("Number of images")
plt.title("Dataset : '{}'".format(dataset))
plt.tight_layout()
plt.savefig("../vis/prior_{}.png".format(dataset))
np.savetxt("../results/priors.csv",priors.numpy()*nbImages)
def agregatePerfs(exp_id,paramAgr,keysRef,namesRef,tempAccMinThres,tempAccMaxThres,tempAccThresStep):
csv = np.genfromtxt("../results/{}/metrics.csv".format(exp_id),delimiter=",",dtype="str")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment