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

A bug in 56 and 57 lines of lib/etc/k_means.py #8

Open
wudeshi opened this issue Apr 11, 2018 · 2 comments
Open

A bug in 56 and 57 lines of lib/etc/k_means.py #8

wudeshi opened this issue Apr 11, 2018 · 2 comments

Comments

@wudeshi
Copy link

wudeshi commented Apr 11, 2018

56 while self._splits[i-1] >= self._splits[i] or self._splits[i-1] not in self._len_cntr:
57 self._splits[i-1] -= 1

1.When self._splits[i-1]=14 and self._splits[i]=5(That is possible because now self._splits[i] was obtained in the last loop。 ),line 57 is executed 。Then when self._splits[i-1]=4 and 4 is not in self._len_cntr , 57 is also executed so that self._splits[i-1] is decreasing on.There is no end.
2.What function it has。

@hailiang-wang
Copy link

come to the same problem.

@Eugen2525
Copy link

you can find the solution in parser2 version, just replace respective codes from there and it will work

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