feat: histogram creation and training report

This commit is contained in:
2024-10-06 22:58:24 +02:00
parent 29e6a86d3d
commit aea4816827
3 changed files with 103 additions and 1 deletions

19
create_histogram.py Normal file
View File

@@ -0,0 +1,19 @@
import json
import matplotlib.pyplot as plt
import numpy as np
if __name__ == "__main__":
with open("training_report.json") as jsonfile:
from_json = json.load(jsonfile)
values = np.array(list(from_json.values()))
values = values.__abs__()
fig,ax = plt.subplots()
ax.hist(values, bins=200 )
# ax.set_xscale('log')
ax.set_yscale('log')
ax.set_ylabel('Number of detections')
ax.set_xlabel('Error (s)')
ax.set_title(f'Histogram of error relative to marked start over the training dataset', fontweight='bold')
plt.show()