Skip to content

Consistently allow user to pass parameter bounds and inits for some but not all parameters #524

Open
@MoAly98

Description

@MoAly98

A user can currently either provide par_bounds or init_pars to a function for all parameters in the model, or none at all. It would be useful to implement a consistently applied and safe interface for users to provide these values only for a subset of the parameters.

Related discussions:

#512 (comment)
#490 (comment)

Example implementation:

par_bounds = [
user_bound if user_bound is not None else suggested_bound
for user_bound, suggested_bound in zip(
par_bounds, model.config.suggested_bounds()
)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions