mirror of
https://github.com/Derisis13/SeismStart.git
synced 2025-12-07 03:52:49 +01:00
feat: histogram creation and training report
This commit is contained in:
19
create_histogram.py
Normal file
19
create_histogram.py
Normal 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()
|
||||
|
||||
Reference in New Issue
Block a user