Skip to content

Fix pairwise bootstrap to tolerate NaNs - #475

Merged
mihaic merged 4 commits into
brainiak:masterfrom
snastase:isc-boot-fix
Aug 31, 2020
Merged

Fix pairwise bootstrap to tolerate NaNs#475
mihaic merged 4 commits into
brainiak:masterfrom
snastase:isc-boot-fix

Conversation

@snastase

Copy link
Copy Markdown
Contributor

This is intended to fix issue #472 raised by @yibeichan (thanks!). We had some redundant assert statements for checking that squareform correctly returns a square/symmetric pairwise ISC matrix; however, one of the assertions gets intentionally violated when the ISC inputs contained NaNs. Here we remove the superfluous assert statements, which fixes the issue with NaNs; and also use force='tomatrix' in the squareform call to make the desired output more obvious.

@mihaic
mihaic merged commit cba905a into brainiak:master Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants