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

adding comments and removing if

parent b49cb21d
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ def main():
PKL_FILE_PATH = "data/800_truths-uniform_partition_4x20-1.2m-pi_12-one_straight_road-2021-10-27-08-49-17.bag.pickle"
NORM_ORD = 1
NUM_MAX_ITER = 500
FEATURE_DOMAIN = "diff"
FEATURE_DOMAIN = "diff" # concat #diff is 2D and concat is 4d
ULT_BOUND = 0.0
teacher = Teacher(norm_ord=NORM_ORD, ultimate_bound=ULT_BOUND)
......@@ -151,6 +151,7 @@ def main():
print("#"*80)
print("Parts with unsafe data points:")
for i, (part, (safe_dps, unsafe_dps, num_nan)) in enumerate(part_to_examples.items()):
lb, ub = np.asfarray(part).T
lb[2] = np.rad2deg(lb[2])
ub[2] = np.rad2deg(ub[2])
......@@ -161,6 +162,9 @@ def main():
result = []
for i, (part, (safe_dps, unsafe_dps, num_nan)) in enumerate(part_to_examples.items()):
#if not i == 14:
# continue
print("#"*80)
print(f"# safe: {len(safe_dps)}; "
f"# unsafe: {len(unsafe_dps)}; "
......
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