Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl authored Jul 11, 2024
1 parent 55a6758 commit 66b1d6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main_OSEM.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 66b1d6e

Please sign in to comment.