From c5f02764c43cda479e60e4c351e73d34cb5c6ab4 Mon Sep 17 00:00:00 2001 From: nataliaculakova Date: Mon, 30 Jan 2023 13:53:07 +0000 Subject: [PATCH] np.bool deprecated --- modAL/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modAL/batch.py b/modAL/batch.py index 38fa732..7f22b65 100644 --- a/modAL/batch.py +++ b/modAL/batch.py @@ -160,7 +160,7 @@ def ranked_batch(classifier: Union[BaseLearner, BaseCommittee], ceiling = np.minimum(unlabeled.shape[0], n_instances) - len(instance_index_ranking) # mask for unlabeled initialized as transparent - mask = np.ones(unlabeled.shape[0], np.bool) + mask = np.ones(unlabeled.shape[0], bool) for _ in range(ceiling):