Skip to content

HyperModel get_lnlikelihood and get_lnprior slower than necessary #200

@AaronDJohnson

Description

@AaronDJohnson

Each of get_lnlikelihood and get_lnprior have a for loop in the HyperModel class to get the relevant parameters for the selected model. This leads to these methods taking much longer than necessary. The parameter indices do not change, and they should instead be decided in __init__. This can be stored in a dict (for example) and called quickly without a for loop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions