Skip to content
Snippets Groups Projects
Commit 0d8ca4e4 authored by aastorg2's avatar aastorg2
Browse files

changing np array to tuple

parent 296dc067
No related branches found
No related tags found
No related merge requests found
......@@ -29,9 +29,8 @@ def load_examples_from_npz(file_name: str, teacher:AgBotTeacher, partition):
#with open(file_name, "rb") as npz_file_io:
npz_data = np.load(file_name)
files = npz_data._files
data_5d =npz_data['dps_arr']
#print(npz_data._files)
data_5d_numpy =npz_data['dps_arr']
data_5d = list(map(tuple, data_5d_numpy))
# x_arr[:-1], except the last one, x_arr[1:]except the first one
print(data_5d[0])
print(len(data_5d))
......
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