From 835f55560383717802ecd243d1dccc096f7bb70d Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Thu, 11 Jul 2024 14:45:24 +0100 Subject: [PATCH] update docstring --- main_OSEM.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main_OSEM.py b/main_OSEM.py index 15e2aec..85bcf2e 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