Skip to content

Commit aebd128

Browse files
authored
Merge pull request #139 from jkleint/albl-pmin-fix
Fix pmin arg check in ActiveLearningByLearning
2 parents cb1120c + b179eb6 commit aebd128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libact/query_strategies/active_learning_by_learning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def __init__(self, *args, **kwargs):
146146

147147
self.pmin = kwargs.pop('pmin', None)
148148
n_algorithms = (len(self.query_strategies_) + self.uniform_sampler)
149-
if self.pmin and (self.pmin < (1. / n_algorithms) or self.pmin < 0):
149+
if self.pmin and (self.pmin > (1. / n_algorithms) or self.pmin < 0):
150150
raise ValueError("'pmin' should be 0 < pmin < "
151151
"1/len(n_active_algorithm)")
152152

0 commit comments

Comments
 (0)