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

ChiMerge.py #2

Closed
AlinaLei opened this issue Mar 10, 2020 · 2 comments
Closed

ChiMerge.py #2

AlinaLei opened this issue Mar 10, 2020 · 2 comments

Comments

@AlinaLei
Copy link

AlinaLei commented Mar 10, 2020

the usage of np.quantile is not correct, you may use np.percentile or df[x].quantile

@Lantianzz
Copy link
Owner

Lantianzz commented Apr 5, 2020

Hi, I'm so sorry that I saw this message nearly a month later. np.quantile and np.percentile are equivalent. The only difference is that the q parameter np.quantile is in range [0, 1], while the one in np.percentile is in range [0, 100]. See details in https://docs.scipy.org/doc/numpy/reference/generated/numpy.quantile.html

image

@AlinaLei
Copy link
Author

thanks for your reply,the version for numpy that I used is too low that encounted the attributeerror,when I test np.quantile in numpy of version 1.18+ is ok.

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