diff --git a/main_OSEM.py b/main_OSEM.py index 15e2aec..5123e4f 100644 --- a/main_OSEM.py +++ b/main_OSEM.py @@ -88,10 +88,10 @@ def update(self): self.subset = (self.subset + 1) % len(self.prompts) def update_objective(self): - # should do some stuff here to have a correct TensorBoard display, but the - # objective function value is not part of the challenge, we will take an ugly short-cut. - # If you need it, you can implement it as a sum over subsets of something like - # prompts * log(acq_model.forward(self.x)) - self.x * sensitivity + """ + NB: The objective value is not required by OSEM nor by PETRIC, so this returns `0`. + NB: In theory it should be `sum(prompts * log(acq_model.forward(self.x)) - self.x * sensitivity)` across all subsets + """ return 0