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

kerpy for python 3.6 #2

Open
LaurentLefebvre opened this issue Aug 8, 2018 · 1 comment
Open

kerpy for python 3.6 #2

LaurentLefebvre opened this issue Aug 8, 2018 · 1 comment

Comments

@LaurentLefebvre
Copy link

Good morning,

First it was a pleasure to find these package to compute HSIC index. Congratulations, it is an impressive work.

I use python 3.6 on ubuntu16.04 and i had some troubles to install/use kerpy. I solved all the issues.
So here my guide line:

  1. Update all python files from python2.x to python3.x bu using 2to3-3.6 helper:
  • 2to3-3.6 -w independence_testing/*.py
  • 2to3-3.6 -w kerpy/*.py
  • 2to3-3.6 -w tools/*.py
  • 2to3-3.6 -w weak_conditional_independence_testing/*.py
  1. Update file "independence_testing/HSICBlockTestObject.py"by correcting this line: "num_blocks = ( self.num_samples ) / self.blocksize" by the new one "num_blocks = int(( self.num_samples ) // self.blocksize)". Indeed, without that, you have this error: "TypeError: 'float' object cannot be interpreted as an integer".

Thank you for this package. Again, it is a very good work.

Best regards.

@MrHuff
Copy link
Contributor

MrHuff commented Dec 6, 2018

Hi,

Thank you for your message. I have patched up the package with the proposed changes and made it more or less compatible with python 3.xx.

Thank you!

Best regards,
Robert Hu

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