Skip to content

Commit d0cfa60

Browse files
committed
bugfix
1 parent e560f0b commit d0cfa60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deepsensor/active_learning/acquisition_fns.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ def __call__(self, task, X_s):
178178
class ContextDist(AcquisitionFunctionParallel):
179179
"""Distance to closest context point."""
180180

181-
def __init__(self, model: ProbabilisticModel):
182-
super().__init__(model)
181+
def __init__(self, context_set_idx: int = 0):
182+
self.context_set_idx = context_set_idx
183183
self.min_or_max = "max"
184184

185185
def __call__(self, task, X_s):
@@ -207,7 +207,7 @@ class Stddev(AcquisitionFunctionParallel):
207207

208208
def __init__(self, model: ProbabilisticModel):
209209
super().__init__(model)
210-
self.min_or_max = "min"
210+
self.min_or_max = "max"
211211

212212
def __call__(self, task, X_s, target_set_idx=0):
213213
# Set the target points to the search points

0 commit comments

Comments
 (0)