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

creating partitions

parent 0d8ca4e4
No related branches found
No related tags found
No related merge requests found
...@@ -32,8 +32,8 @@ def load_examples_from_npz(file_name: str, teacher:AgBotTeacher, partition): ...@@ -32,8 +32,8 @@ def load_examples_from_npz(file_name: str, teacher:AgBotTeacher, partition):
data_5d_numpy =npz_data['dps_arr'] data_5d_numpy =npz_data['dps_arr']
data_5d = list(map(tuple, data_5d_numpy)) data_5d = list(map(tuple, data_5d_numpy))
# x_arr[:-1], except the last one, x_arr[1:]except the first one # x_arr[:-1], except the last one, x_arr[1:]except the first one
print(data_5d[0]) bound_list = list(list(zip(x_arr[:-1], x_arr[1:])) for x_arr in partition)
print(len(data_5d)) ret = {part: [[], [], 0] for part in itertools.product(*bound_list)}
print(teacher.is_positive_example(data_5d[0])) print(teacher.is_positive_example(data_5d[0]))
......
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