Skip to content

Commit

Permalink
only checking the prediction column for NaN when we get back results …
Browse files Browse the repository at this point in the history
…from the endpoint
  • Loading branch information
brifordwylie committed Dec 10, 2024
1 parent 92d6f03 commit 95ed452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sageworks/core/artifacts/endpoint_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def _predict(self, eval_df: pd.DataFrame) -> pd.DataFrame:
converted_df = converted_df.convert_dtypes()

# Report on any rows that failed
failed_rows = converted_df[converted_df.isna().any(axis=1)]
failed_rows = converted_df[converted_df["prediction"].isna()]
if not failed_rows.empty:
self.log.warning(f"Rows that failed:\n{failed_rows}")

Expand Down

0 comments on commit 95ed452

Please sign in to comment.