Non Conjugate Functions
PoissonTestFunction
dataclass
Test function for GPs utilising the Poisson likelihood. Function taken from https://docs.jaxgaussianprocesses.com/examples/poisson/#dataset.
Attributes:
-
search_space
(ContinuousSearchSpace
) βSearch space for the function.
generate_dataset
Generate a toy dataset from the test function.
Parameters:
-
num_points
(int
) βNumber of points to sample.
-
key
(KeyArray
) βJAX PRNG key.
Returns:
-
Dataset
(Dataset
) βDataset of points sampled from the test function.
generate_test_points
Generate test points from the search space of the test function.
Parameters:
-
num_points
(int
) βNumber of points to sample.
-
key
(KeyArray
) βJAX PRNG key.
Returns:
-
Float[Array, 'N D']
βFloat[Array, 'N D']: Test points sampled from the search space.
evaluate
abstractmethod
Evaluate the test function at a set of points. Function taken from https://docs.jaxgaussianprocesses.com/examples/poisson/#dataset.
Parameters:
-
x
(Float[Array, 'N D']
) βPoints to evaluate the test function at.
Returns:
-
Int[Array, 'N 1']
βFloat[Array, 'N 1']: Values of the test function at the points.