From dc748073b9601a2fbc035c784e91cb9844eaeff0 Mon Sep 17 00:00:00 2001 From: Kyle Vedder Date: Fri, 9 Feb 2024 19:39:22 -0500 Subject: [PATCH] v0.0.18: Updated the precision of the outputs --- bucketed_scene_flow_eval/eval/bucketed_epe.py | 6 +++--- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bucketed_scene_flow_eval/eval/bucketed_epe.py b/bucketed_scene_flow_eval/eval/bucketed_epe.py index f5fa962..ef9341b 100644 --- a/bucketed_scene_flow_eval/eval/bucketed_epe.py +++ b/bucketed_scene_flow_eval/eval/bucketed_epe.py @@ -37,10 +37,10 @@ class OverallError: def __repr__(self) -> str: static_epe_val_str = ( - f"{self.static_epe:0.2f}" if np.isfinite(self.static_epe) else f"{self.static_epe}" + f"{self.static_epe:0.6f}" if np.isfinite(self.static_epe) else f"{self.static_epe}" ) dynamic_error_val_str = ( - f"{self.dynamic_error:0.2f}" + f"{self.dynamic_error:0.6f}" if np.isfinite(self.dynamic_error) else f"{self.dynamic_error}" ) @@ -199,7 +199,7 @@ def to_full_latex(self) -> str: # Format the data values with two decimal places or a hyphen if NaN row_data = " & ".join( [ - f"{value:.2f}" if not np.isnan(value) else "-" + f"{value:.6f}" if not np.isnan(value) else "-" for value in error_matrix[self.class_names.index(class_name)] ] ) diff --git a/pyproject.toml b/pyproject.toml index ec3dbfd..7269b14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ exclude = [ [project] name = "bucketed_scene_flow_eval" -version = "0.0.17" +version = "0.0.18" authors = [ { name="Kyle Vedder", email="kvedder@seas.upenn.edu" }, ]