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

Minor changes for Python 3 #4

Open
convexset opened this issue Apr 28, 2018 · 1 comment
Open

Minor changes for Python 3 #4

convexset opened this issue Apr 28, 2018 · 1 comment

Comments

@convexset
Copy link

It would be good to make a few changes for Python 3.

range instead of xrange and print as a function.

In lines 49 to 56:

        for _ in range(d):
            table = array.array("l", (0 for _ in range(m)))
            self.tables.append(table)
            self.salt.append(hash(str(id(table))))

    def _hash(self, x):
        for s in self.salt:
            print (hash((x, s)))
@SerialDev
Copy link

https://github.com/SerialDev/Count-min-sketch-3 Created a new repo due to inactivity. this should work btw

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

2 participants