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

ZeroDivisionError: float division by zero #27

Open
childe-wuhen opened this issue Dec 12, 2020 · 2 comments
Open

ZeroDivisionError: float division by zero #27

childe-wuhen opened this issue Dec 12, 2020 · 2 comments

Comments

@childe-wuhen
Copy link

childe-wuhen commented Dec 12, 2020

在生成SE时,preprocess_transition_probs()的normalized_probs = [float(u_prob)/norm_const for u_prob in unnormalized_probs]出现问题:ZeroDivisionError: float division by zero

@Yuwangzhi
Copy link

在生成SE时,preprocess_transition_probs()的normalized_probs = [float(u_prob)/norm_const for u_prob in unnormalized_probs]出现问题:ZeroDivisionError: float division by zero
一样的问题,你已经解决了嘛

@auee028
Copy link

auee028 commented Dec 7, 2022

I just manually changed all diagonal elements from 0.0 to 1.0 in Adj.txt file.

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

3 participants