Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Change check for nullness of arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
esherman-credo committed Jan 17, 2023
1 parent f41e460 commit 342319c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions credoai/artifacts/model/classification_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ def __init__(
tags=None,
):
self.model_like = model_like
if predict_output:
if predict_output is not None:
self.predict_output = check_array(
predict_output, ensure_2d=False, allow_nd=True
)
if predict_proba_output:
if predict_proba_output is not None:
self.predict_proba_output = check_array(
predict_proba_output, ensure_2d=False, allow_nd=True
)
Expand Down

0 comments on commit 342319c

Please sign in to comment.