Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kstar is not defined for some conditions #11

Open
quancs opened this issue May 18, 2023 · 0 comments
Open

Kstar is not defined for some conditions #11

quancs opened this issue May 18, 2023 · 0 comments

Comments

@quancs
Copy link
Contributor

quancs commented May 18, 2023

Hello, I am currently translating the code to pytorch for using GPUs to speed up and for training neural networks (see Lightning-AI/torchmetrics#1792).
In the following code, I found that Kstar is not defined when BW == cutoffs[5] or BW == cutoffs[6] or BW == cutoffs[7] or BW <= cutoffs[4]. Is it because that these conditions won't get satisfied anyway?

SRMRpy/srmrpy/srmr.py

Lines 89 to 96 in 5d3c134

if (BW > cutoffs[4]) and (BW < cutoffs[5]):
Kstar=5
elif (BW > cutoffs[5]) and (BW < cutoffs[6]):
Kstar=6
elif (BW > cutoffs[6]) and (BW < cutoffs[7]):
Kstar=7
elif (BW > cutoffs[7]):
Kstar=8

@quancs quancs changed the title Kstar is not difined for some conditions Kstar is not defined for some conditions May 23, 2023
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

No branches or pull requests

1 participant