Skip to content

Nondeterminism bug in parmest #3372

@blnicho

Description

@blnicho

Summary

@djlaky discovered an issue in parmest with constraints being generated in a nondeterministic order. We think we've tracked the issue to this line in parmest where we are using a Python set to make sure the list of theta names does not have duplicates:

self.estimator_theta_names = list(set(theta_names))

The fix suggested by @jsiirola is to use the following to create a list without duplicates:

my_list = list(dict.fromkeys(list_with_duplicates))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions