Skip to content

Commit

Permalink
fixed nan edge-case in report api
Browse files Browse the repository at this point in the history
  • Loading branch information
rabah-khalek committed Aug 19, 2024
1 parent 1b2d56d commit e52e9ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions giskard_vision/landmark_detection/tests/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def to_dataframe(self, summary: Optional[bool] = False):
raise GiskardImportError(["pandas"]) from e

df = pd.DataFrame(self.results)
df.dropna(inplace=True) # in case the model failed to predict for instance

for col in ["metric_value", "prediction_time", "prediction_fail_rate"]:
col_name = f"Best({col})"
Expand Down

0 comments on commit e52e9ac

Please sign in to comment.