synapsesanddendrites / Pattern_separation_toolbox

A set of functions allowing for easy analysis of pattern separation in spike train ensembles. In particular it includes the new information-theoretic measures described in 'Robust and consistent measures of pattern separation based on information theory and demonstrated in the dentate gyrus' (Bird, Cuntz, & Jedlicka, 2022).
MIT License
2 stars 1 forks source link

Infinite loop in `estimate_MI` #1

Open harvey2phase opened 1 year ago

harvey2phase commented 1 year ago

The estimate_MI function in estimate_MI.m sometimes gets stuck in an infinite loop.

I was able to produce a workaround by adding a counter variable and restarting the function (with the exact same input parameters) when the loop runs for more than 10 times.

synapsesanddendrites commented 1 year ago

Great, thank you. So that I can update the code, where did you add the counter? Did you notice anything similar for the estimate_RR function?

Best, Alex

On Thu, 9 Mar 2023 at 17:05, Harvey Wang @.***> wrote:

The estimate_MI function in estimate_MI.m sometimes gets stuck in an infinite loop.

I was able to produce a workaround by adding a counter variable and restarting the function (with the exact same input parameters) when the loop runs for more than 10 times.

— Reply to this email directly, view it on GitHub https://github.com/synapsesanddendrites/Pattern_separation_toolbox/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMIIMJPOEE2EKFKUWUH3SVDW3H5UNANCNFSM6AAAAAAVVJ42AE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Dr Alexander Bird, ICAR3R (University of Giessen) & Ernst Strüngmann Institute for Neuroscience (Max Planck Society), Frankfurt am Main, Germany.