Skip to content

Commit

Permalink
Fix typo in logging and bump structlog (#285)
Browse files Browse the repository at this point in the history
* Fix typo in logging and bump structlog

* Update dataset in test

* Add Accelerate for GHCI
  • Loading branch information
Dref360 committed Apr 4, 2024
1 parent b943508 commit 0c941b8
Show file tree
Hide file tree
Showing 4 changed files with 445 additions and 169 deletions.
2 changes: 1 addition & 1 deletion baal/active/heuristics/stochastics.py
Expand Up @@ -47,7 +47,7 @@ def get_ranks(self, predictions):

# TODO Seed?
if (distributions > 0).sum() < self.query_size:
log.warnings("Not enough values, return random")
log.warn("Not enough values, return random")
distributions = np.ones_like(distributions) / len(distributions)
return (
np.random.choice(len(distributions), self.query_size, replace=False, p=distributions),
Expand Down

0 comments on commit 0c941b8

Please sign in to comment.