Skip to content
Snippets Groups Projects
Commit 60259de3 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 1513caa9
No related branches found
No related tags found
No related merge requests found
...@@ -1189,14 +1189,6 @@ def run_average_models(ckpt_dir_s_path, day_night='NIGHT', l1b_andor_l2='BOTH', ...@@ -1189,14 +1189,6 @@ def run_average_models(ckpt_dir_s_path, day_night='NIGHT', l1b_andor_l2='BOTH',
k_model = model.model k_model = model.model
model_weight_s.append(k_model.get_weights()) model_weight_s.append(k_model.get_weights())
print('done loading models ******************************************') print('done loading models ******************************************')
z_model_weights = zip(model_weight_s)
print('test')
avg_model_weights = []
for lyr in z_model_weights:
print(len(lyr))
for w in lyr:
avg_model_weights(np.mean(w))
print('***', len(avg_model_weights))
avg_model_weights = [] avg_model_weights = []
for m in model_weight_s: for m in model_weight_s:
...@@ -1204,7 +1196,7 @@ def run_average_models(ckpt_dir_s_path, day_night='NIGHT', l1b_andor_l2='BOTH', ...@@ -1204,7 +1196,7 @@ def run_average_models(ckpt_dir_s_path, day_night='NIGHT', l1b_andor_l2='BOTH',
for w in m: for w in m:
print(w.shape) print(w.shape)
avg_model_weights.append(np.mean(w)) avg_model_weights.append(np.mean(w))
print('--------------------------------------')
# -- Make a new model for the averaged weights # -- Make a new model for the averaged weights
new_model = IcingIntensityFCN(day_night=day_night, l1b_or_l2=l1b_andor_l2, use_flight_altitude=use_flight_altitude) new_model = IcingIntensityFCN(day_night=day_night, l1b_or_l2=l1b_andor_l2, use_flight_altitude=use_flight_altitude)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment