Skip to content

Commit

Permalink
tests: Fix incorrect sigma0 values for likelihood based spm fitting
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyPlanden committed Jul 2, 2024
1 parent 1b93101 commit 43cfcb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_spm_parameterisations.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ def spm_costs(self, model, parameters, cost_class, init_soc):
# Define the cost to optimise
problem = pybop.FittingProblem(model, parameters, dataset, init_soc=init_soc)
if cost_class in [pybop.GaussianLogLikelihoodKnownSigma]:
return cost_class(problem, sigma=[0.03, 0.03])
return cost_class(problem, sigma=0.002)
elif cost_class in [pybop.MAP]:
return cost_class(
problem, pybop.GaussianLogLikelihoodKnownSigma, sigma=[0.03, 0.03]
problem, pybop.GaussianLogLikelihoodKnownSigma, sigma=0.002
)
else:
return cost_class(problem)
Expand Down

0 comments on commit 43cfcb5

Please sign in to comment.