summaryrefslogtreecommitdiffstats
path: root/Wrappers
diff options
context:
space:
mode:
authordkazanc <dkazanc@hotmail.com>2019-02-25 17:24:54 +0000
committerdkazanc <dkazanc@hotmail.com>2019-02-25 17:24:54 +0000
commit36cd88670b192e93f611863d58a438b9135b097c (patch)
treed30cf898d3e357078f06354ab9bbc81e5feaaccd /Wrappers
parent0587f96cafac66d9ee04005a80b43514c6d2a753 (diff)
downloadregularization-36cd88670b192e93f611863d58a438b9135b097c.tar.gz
regularization-36cd88670b192e93f611863d58a438b9135b097c.tar.bz2
regularization-36cd88670b192e93f611863d58a438b9135b097c.tar.xz
regularization-36cd88670b192e93f611863d58a438b9135b097c.zip
optim demo upd
Diffstat (limited to 'Wrappers')
-rw-r--r--Wrappers/Python/demos/SoftwareX_supp/Demo_SimulData_ParOptimis_SX.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/Wrappers/Python/demos/SoftwareX_supp/Demo_SimulData_ParOptimis_SX.py b/Wrappers/Python/demos/SoftwareX_supp/Demo_SimulData_ParOptimis_SX.py
index a79d0a3..c4f33ba 100644
--- a/Wrappers/Python/demos/SoftwareX_supp/Demo_SimulData_ParOptimis_SX.py
+++ b/Wrappers/Python/demos/SoftwareX_supp/Demo_SimulData_ParOptimis_SX.py
@@ -98,6 +98,12 @@ for i in range(0,param_space):
plt.figure()
plt.plot(erros_vec_sbtv)
+
+# Saving generated data with a unique time label
+h5f = h5py.File('Optim_admm_sbtv.h5', 'w')
+h5f.create_dataset('reg_param_sb_vec', data=reg_param_sb_vec)
+h5f.create_dataset('erros_vec_sbtv', data=erros_vec_sbtv)
+h5f.close()
#%%
param_space = 30
reg_param_rofllt_vec = np.linspace(0.03,0.15,param_space,dtype='float32') # a vector of parameters
@@ -119,6 +125,12 @@ for i in range(0,param_space):
plt.figure()
plt.plot(erros_vec_rofllt)
+
+# Saving generated data with a unique time label
+h5f = h5py.File('Optim_admm_rofllt.h5', 'w')
+h5f.create_dataset('reg_param_rofllt_vec', data=reg_param_rofllt_vec)
+h5f.create_dataset('erros_vec_rofllt', data=erros_vec_rofllt)
+h5f.close()
#%%
param_space = 30
reg_param_tgv_vec = np.linspace(0.03,0.15,param_space,dtype='float32') # a vector of parameters
@@ -139,4 +151,10 @@ for i in range(0,param_space):
plt.figure()
plt.plot(erros_vec_tgv)
+
+# Saving generated data with a unique time label
+h5f = h5py.File('Optim_admm_tgv.h5', 'w')
+h5f.create_dataset('reg_param_tgv_vec', data=reg_param_tgv_vec)
+h5f.create_dataset('erros_vec_tgv', data=erros_vec_tgv)
+h5f.close()
#%% \ No newline at end of file