ers.append(errpr) times.append(time.time() - st) tf.reset_default_graph() print('***************') from Detemine_error import compute_error_metric sorted_errors = sorted(ers) a = sorted_errors[0:3] errors = list(ers) ers = [] keys = [] for i in a: ers.append(i) keys.append(errors.index(i)) true_keys = [] for i in keys: if i < test_loc - 1: true_keys.append(i + 1) else: true_keys.append(i + 2) print('3 best candidate locations:') print(true_keys) print('\n') er = compute_error_metric(true_keys[0], true_keys[1], param, ers[0], ers[1]) print('Error is ' + str(er) + ' meters !') print('Took : ' + str(np.sum(times)))
times.append(time.time() - st) tf.reset_default_graph() print('***************') from Detemine_error import compute_error_metric sorted_errors = sorted(ers) a = sorted_errors[0:3] errors = list(ers) ers = [] keys = [] for i in a: ers.append(i) keys.append(errors.index(i)) true_keys = [] for i in keys: if i < test_loc - 1: true_keys.append(i + 1) else: true_keys.append(i + 2) print('3 best candidate locations:') print(true_keys) print('\n') er = compute_error_metric(true_keys[0], true_keys[1], true_keys[2], test_loc, ers[0], ers[1], ers[2]) print('Error is ' + str(er) + ' meters !') print('Took : ' + str(np.sum(times)))