HyperModel get_lnlikelihood
and get_lnprior
slower than necessary
#200
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Each of
get_lnlikelihood
andget_lnprior
have a for loop in theHyperModel
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 afor
loop.The text was updated successfully, but these errors were encountered: