Commit 99c692fe authored by Ashkan's avatar Ashkan

Latest updated.

parent a74c2c83
app_max_latency,app_max_residual_loss_rate,app_data_rate,app_pkt_length,ch_loss_rate,ch_rtt_prop_fwd,ch_data_rate_btl_fwd,sys_block_coding_dly,sys_red_pkt_trans_dly,sys_proc_dly,sys_pkt_loss_detection_dly,sys_src_pkt_interval
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,0.00014,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,0.00014,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,0.00014,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,0.00014,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,4e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,4e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,4e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,4e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,1e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,1e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,1e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,1e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.0005,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.0005,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.0005,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.0005,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.00014,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.00014,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.00014,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.00014,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,4e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,4e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,4e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,4e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,1e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,1e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,1e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,1e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.0005,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.0005,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.0005,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.0005,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.00014,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.00014,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.00014,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.00014,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,4e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,4e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,4e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,4e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,1e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,1e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,1e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,1e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.0005,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.0005,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.0005,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.0005,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.00014,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.00014,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.00014,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.00014,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,4e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,4e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,4e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,4e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,1e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,1e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,1e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,1e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.0005,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.0005,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.0005,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.0005,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.00014,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.00014,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.00014,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.00014,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,4e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,4e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,4e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,4e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,1e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,1e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,1e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,1e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.0005,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.0005,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.0005,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.0005,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.00014,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.00014,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.00014,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.00014,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,4e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,4e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,4e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,4e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,1e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,1e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,1e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,1e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.0005,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.0005,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.0005,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.0005,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.00014,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.00014,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.00014,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.00014,0.0001
......@@ -30,8 +30,7 @@ class HECSearch:
n_c_max = math.ceil((self.prrtApplicationParameters.max_latency - self.get_fec_delay_min()) /
(self.prrtChannelParameters.rtt_prop_fwd +
self.prrtSystemParameters.redundancy_packet_transmission_delay))
if n_c_max > n_c_cap:
n_c_max = n_c_cap
n_c_max = min(n_c_max, n_c_cap)
# print("n_c_max=" + str(n_c_max))
arq_delay_i = self.prrtChannelParameters.rtt_prop_fwd \
+ self.prrtSystemParameters.redundancy_packet_transmission_delay
......
......@@ -6,16 +6,16 @@ import numpy as np
import pandas as pd
from multiprocessing import Pool
ds_basename = os.listdir("../../hecps/code/ML/data/")
# ds_basename = os.listdir("../../hecps/code/ML/data/")
ds_rel_input_path = "../../hecps/code/ML/data/"
ds_rel_output_path = "documents/bigdata/"
# ds_rel_input_path = "../../hecps/code/ML/data/"
# ds_rel_output_path = "documents/bigdata/"
#['documents/1','documents/2','documents/3','documents/4','documents/5','documents/6']
# ds_basename = os.listdir("documents/input/")
# ds_basename = ["LONG_in_12_param_4_sz_zzelqt"]
# ds_rel_input_path = "documents/input/"
# ds_rel_output_path = "documents/output/"
ds_basename = ["LONG_in_12_param_4_sz_zzelqt"]
ds_rel_input_path = "documents/input/"
ds_rel_output_path = "documents/output/"
columns_order = ["app_max_latency", "app_max_residual_loss_rate", "app_data_rate", "app_pkt_length",
......@@ -36,7 +36,7 @@ def evaluate(searchAlgorithm, appParams, channelParams, systemParams):
search = hec_search.HECSearch(searchAlgorithm, n_p_min, n_p_max, appParams, channelParams, systemParams)
search_result = search.search()
duration = time.time() - start
# print("Duration: " + str(duration))
print("Duration: " + str(duration))
return [search_result, duration]
else:
return []
......@@ -48,7 +48,8 @@ def test_case(dataset_basename):
for df_in_chunk in pd.read_csv(ds_rel_input_path + dataset_basename, sep=',', chunksize=100):
print(dataset_basename + " started.")
for index, row in df_in_chunk.iterrows():
if index != -1:
if index == 1:
print(str(index))
appParams = prrt.PrrtApplicationParameters(row['app_max_latency'], row['app_max_residual_loss_rate'], row['app_data_rate'], row['app_pkt_length'])
chnlParams = prrt.PrrtChannelParameters(row['ch_loss_rate'], 0, row['ch_rtt_prop_fwd'], 0, row['ch_data_rate_btl_fwd'], 0)
sysParams = prrt.PrrtSystemParameters(0, np.round(row['sys_red_pkt_trans_dly'], 5), 0, 0, row['sys_src_pkt_interval'])
......@@ -91,7 +92,7 @@ def test_case(dataset_basename):
# 'sys_pkt_loss_detection_dly' : row['sys_pkt_loss_detection_dly'],
'sys_src_pkt_interval' : row['sys_src_pkt_interval'],
# 'search': searchAlgorithm,
'time' : 0
'time' : 0,
'config': ["INV_PRM_NPM"],
'fec_balance': config[3]}, ignore_index=True, sort=False)
......@@ -104,6 +105,6 @@ def test_case(dataset_basename):
# test_case(ds_basename)
if __name__ == '__main__':
pool = Pool(processes=7)
pool = Pool(processes=1)
pool.map(test_case, ds_basename, chunksize=1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment