Skip to content

Unexpected Behavior with Additional Keys in Prior Dictionary #439

@arrjon

Description

@arrjon

If the prior generates a dict with keys, which are not used neither as inference variables nor as conditions, e.g. additional_key, the user has to specify that these keys should be dropped in the adapter; otherwise, the fitting will fail with the following error:

TypeError: ContinuousApproximator.compute_metrics() got an unexpected keyword argument 'additional_key'

From a user’s point of view, this is unexpected. A more user-friendly approach would be to handle this situation smoothly by issuing a warning about unused keys instead of causing an error.

Metadata

Metadata

Assignees

Labels

user interfaceChanges to the user interface and improvements in usability

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions