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

分析数据集的代码analysis_dataset.py好像有问题,具体如下 #18

Open
HELL-TO-HEAVEN opened this issue Jul 21, 2019 · 0 comments

Comments

@HELL-TO-HEAVEN
Copy link

  1. 第37行对h进行除以10的操作,会产生小数,导致第47行的h_count_dict.keys()全是小数,从而x = range(max(h_count_dict.keys())+1)会报错,因为range里面只能是整数;
  2. 继续看下去,第48行的y = [0 for _ in x]让y初始化为一个列表,51行y[h] = h_count_dict[h]赋值操作,因为h是小数,所以y[h]写法是错误的,会报错;
  3. 请问作者是怎么成功运行analysis_dataset.py的???
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