pints icon indicating copy to clipboard operation
pints copied to clipboard

Move sigma0 guessing code to hidden utility function

Open MichaelClerx opened this issue 6 years ago • 2 comments

We have code that guesses a covariance matrix based on an input vector in a few different places, probably makes sense to write a single utility function that does this and call it where needed.

MichaelClerx avatar Jan 29 '19 11:01 MichaelClerx

Can you point me to these?

fcooper8472 avatar Mar 12 '19 11:03 fcooper8472

Here's one: https://github.com/pints-team/pints/blob/master/pints/_optimisers/init.py#L101-L135

And another: https://github.com/pints-team/pints/blob/master/pints/_mcmc/init.py#L87-L104

I think a few more are hidden in branches at the moment

They don't do exactly the same. It'd be good to have some utility function (or multiple?) with a name that makes sense, so that we can standardise this sort of thing.

MichaelClerx avatar Mar 12 '19 11:03 MichaelClerx