From 5d7d71f13b1a9b0d355f29efb4a6c1f644bfd166 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 14 Apr 2022 15:08:27 -0500 Subject: [PATCH] minor... --- modules/deeplearning/icing_cnn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/deeplearning/icing_cnn.py b/modules/deeplearning/icing_cnn.py index b8c5d252..020668d3 100644 --- a/modules/deeplearning/icing_cnn.py +++ b/modules/deeplearning/icing_cnn.py @@ -1,5 +1,5 @@ import tensorflow as tf -from util.setup import logdir, modeldir, cachepath, now, ancillary_path +from util.setup import logdir, modeldir, cachepath, now, ancillary_path, home_dir from util.util import EarlyStop, normalize, make_for_full_domain_predict from util.geos_nav import get_navigation, get_lon_lat_2d_mesh @@ -930,7 +930,7 @@ class IcingIntensityNN: if self.h5f_l2_tst is not None: self.h5f_l2_tst.close() - f = open('/home/rink/best_stats_'+now+'.pkl', 'wb') + f = open(home_dir+'/best_stats_'+now+'.pkl', 'wb') pickle.dump((best_test_loss, best_test_acc, best_test_recall, best_test_precision, best_test_auc, best_test_f1, best_test_mcc), f) f.close() -- GitLab