Skip to content

Commit

Permalink
fix(gpjax/thompson_sampling): add NonConjugatePosterior type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-huan committed Jun 27, 2024
1 parent 503d0b6 commit 0bc0435
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gpjax/decision_making/utility_functions/thompson_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
SinglePointUtilityFunction,
)
from gpjax.decision_making.utils import OBJECTIVE
from gpjax.gps import ConjugatePosterior
from gpjax.gps import (
ConjugatePosterior,
NonConjugatePosterior,
)
from gpjax.typing import KeyArray


Expand Down Expand Up @@ -56,7 +59,7 @@ def __post_init__(self):

def build_utility_function(
self,
posteriors: Mapping[str, ConjugatePosterior],
posteriors: Mapping[str, ConjugatePosterior | NonConjugatePosterior],
datasets: Mapping[str, Dataset],
key: KeyArray,
) -> SinglePointUtilityFunction:
Expand Down

0 comments on commit 0bc0435

Please sign in to comment.