-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hello author, sorry to bother you. I would like to ask
Load created samples
At first, you should load each of the npy files created in /Samples_whole folder. Then, the samples from the different engines should be aggregated.
def load_part_array_merge (npz_units):
sample_array_lst = []
label_array_lst = []
for npz_unit in npz_units:
loaded = np.load(npz_unit)
sample_array_lst.append(loaded['sample'])
label_array_lst.append(loaded['label'])
sample_array = np.dstack(sample_array_lst)
label_array = np.concatenate(label_array_lst)
sample_array = sample_array.transpose(2, 0, 1)
return sample_array, label_array
The shape of your sample array should be (# of samples from all the units, window size, # of variables)
What is the purpose of this part?
Metadata
Metadata
Assignees
Labels
No labels