wi-lab commited on
Commit
9b8d7f0
1 Parent(s): a46c6f5

Update input_preprocess.py

Browse files
Files changed (1) hide show
  1. input_preprocess.py +8 -1
input_preprocess.py CHANGED
@@ -359,4 +359,11 @@ def label_prepend(deepmimo_data, preprocessed_chs, task, scenario_idxs, n_beams=
359
 
360
  preprocessed_chs = [preprocessed_chs[i] + [labels[i]] for i in range(len(preprocessed_chs))]
361
 
362
- return preprocessed_chs
 
 
 
 
 
 
 
 
359
 
360
  preprocessed_chs = [preprocessed_chs[i] + [labels[i]] for i in range(len(preprocessed_chs))]
361
 
362
+ return preprocessed_chs
363
+
364
+ def create_labels(task, scenario_names, n_beams=64):
365
+ labels = []
366
+ for scenario_name in scenario_names:
367
+ data = DeepMIMO_data_gen(scenario_name)
368
+ labels.extend(label_gen(task, data, scenario_name, n_beams=n_beams))
369
+ return labels