diff --git a/modules/deeplearning/cloud_fraction_fcn_abi.py b/modules/deeplearning/cloud_fraction_fcn_abi.py index 631f6e8406fde89b415765b06b97f48a42bbf3d7..3c1b28116f744e66d88ef4fc125b345262da412d 100644 --- a/modules/deeplearning/cloud_fraction_fcn_abi.py +++ b/modules/deeplearning/cloud_fraction_fcn_abi.py @@ -1373,6 +1373,23 @@ def analyze_5cat(file): [precision_0, precision_1, precision_2], [mcc_0, mcc_1, mcc_2], lbls, pred +# Fig, ax = plt.subplots() +# lbls = lbls.flatten() +# pred = pred.flatten() +# cld_prob = cld_prob.flatten() +# cat_0 = lbls == 0 +# cat_1 = lbls == 1 +# cat_2 = lbls == 2 +# cat_3 = lbls == 3 +# cat_4 = lbls == 4 +# plt.hist(cld_prob[cat_0], log=True, histtype='step', linewidth=1.4, color='blue', label='CLR') +# plt.hist(cld_prob[cat_1], log=True, histtype='step', linewidth=1.4, color='orange', label='1/4') +# plt.hist(cld_prob[cat_2], log=True, histtype='step', linewidth=1.4, color='green', label='1/2') +# plt.hist(cld_prob[cat_3], log=True, histtype='step', linewidth=1.4, color='red', label='3/4') +# plt.hist(cld_prob[cat_4], log=True, histtype='step', linewidth=1.4, color='purple', label='CLD') +# ax.legend(loc='upper center') + + if __name__ == "__main__": nn = SRCNN() nn.run('matchup_filename')