Skip to content

Add prior args for MAP cost function #360

Description

@BradyPlanden

Feature description

Update the MAP cost function to allow for prior to be passed on construction. Keep the current functionality that defines these from the Parameters class, but only if the default priors arg is passed.

Motivation

No response

Possible implementation

Functionality should look like this:

prior1 = pybop.Gaussian(0.1, 0.01)
prior2 = pybop.Uniform(0.5, 0.6)
cost = pybop.MAP(problem, prior=[prior1, prior2])

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions