Skip to content

Commit

Permalink
add in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fullflu committed Sep 5, 2021
1 parent 60da381 commit 8578e0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion obp/dataset/synthetic_continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def calc_ground_truth_policy_value(
check_array(array=action, name="action", expected_dim=1)
if context.shape[1] != self.dim_context:
raise ValueError(
"Expected `context.shape[1] == self.dim_context`, found it False"
"Expected `context.shape[1] == self.dim_context`, but found it False"
)
if context.shape[0] != action.shape[0]:
raise ValueError(
Expand Down
2 changes: 1 addition & 1 deletion obp/dataset/synthetic_slate.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ def calc_ground_truth_policy_value(
)
if context.shape[1] != self.dim_context:
raise ValueError(
"Expected `context.shape[1] == self.dim_context`, found it False"
"Expected `context.shape[1] == self.dim_context`, but found it False"
)
if evaluation_policy_logit_.shape[0] != context.shape[0]:
raise ValueError(
Expand Down

0 comments on commit 8578e0c

Please sign in to comment.