Skip to content

randomize_hyperparameters ignores prior_on #793

@j-wilson

Description

@j-wilson

The randomize_hyperparameters helper does not check parameters' prior_on attributes here. Hopefully a quick fix:

if param.prior_on is PriorOn.UNCONSTRAINED:
    param.unconstrained_variable.assign(sample)
else:
    param.assign(sample)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions