Merge branch 'main' of git.starbeamrainbowlabs.com:sbrl/PhD-Rainfall-Radar

This commit is contained in:
Starbeamrainbowlabs 2023-05-11 15:59:08 +01:00
commit ae0c672f60
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -258,12 +258,12 @@ if PATH_CHECKPOINT is None:
logger.info(">>> Training complete")
logger.info(">>> Plotting graphs")
plot_metric(history.history["loss"], history.history["val_loss"], "loss")
plot_metric(history.history["acc"], history.history["val_acc"], "accuracy")
plot_metric(history.history["metric_dice_coefficient"], history.history["val_metric_dice_coefficient"], "dice")
plot_metric(history.history["one_hot_mean_iou"], history.history["val_one_hot_mean_iou"], "mean iou")
plot_metric(history.history["sensitivity"], history.history["val_sensitivity"], "sensitivity")
plot_metric(history.history["specificity"], history.history["val_specificity"], "specificity")
plot_metric(history.history["loss"], history.history["val_loss"], "loss", DIR_OUTPUT)
plot_metric(history.history["acc"], history.history["val_acc"], "accuracy", DIR_OUTPUT)
plot_metric(history.history["metric_dice_coefficient"], history.history["val_metric_dice_coefficient"], "dice", DIR_OUTPUT)
plot_metric(history.history["one_hot_mean_iou"], history.history["val_one_hot_mean_iou"], "mean iou", DIR_OUTPUT)
plot_metric(history.history["sensitivity"], history.history["val_sensitivity"], "sensitivity", DIR_OUTPUT)
plot_metric(history.history["specificity"], history.history["val_specificity"], "specificity", DIR_OUTPUT)
# ██ ███ ██ ███████ ███████ ██████ ███████ ███ ██ ██████ ███████