Skip to content

Commit

Permalink
np.bool.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Mar 27, 2024
1 parent e1dc2a1 commit 17fa5a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/dask/dask_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def after_iteration(self, model, epoch, evals_log):
return False # continue training
p = probability_for_going_backward(epoch)
go_backward = self.rng.choice(2, size=(1,), replace=True, p=[1 - p, p]).astype(
np.bool
np.bool_
)[0]
print(
"The validation metric went into the wrong direction. "
Expand Down

0 comments on commit 17fa5a8

Please sign in to comment.