-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Report
GPJax version:
0.9.0
Current behavior:
The new changes from the previous gpjax.objectives.ConjugateMLL
to the new gpjax.objectives.conjugate_mll
implementation has removed the negative
parameter from the previous superclass gpjax.objectives.AbstractObjective
without correctly modifying the new code to negate the MLL. Optimisation of model parameters does not work.
Expected behavior:
Optimisation of model parameters should fit model to data.
Steps to reproduce:
Run the Simple Example
on the README.
Related code:
To make optimisation work, we now have to do
opt_posterior, history = gpx.fit(
model=posterior,
objective=lambda p, d: -1 * gpx.objectives.conjugate_mll(p, d),
train_data=D,
optim=optimiser,
num_iters=500,
safe=True,
key=key,
)
instead of providing gpx.objectives.conjugate_mll
to the objective
parameter.
Other information:
This also applies to log_posterior_density
.
miguelgondu
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working