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

How to do if power function assert get error ? #24

Open
eromoe opened this issue Feb 26, 2024 · 0 comments
Open

How to do if power function assert get error ? #24

eromoe opened this issue Feb 26, 2024 · 0 comments

Comments

@eromoe
Copy link

eromoe commented Feb 26, 2024

I got this error on my datasets:

157 assert np.array_equal(df.index.sort_values(), df.index), "Index is not sorted"
158 result = np.sign(df) * np.abs(df) ** p
--> 159 assert ((result.std() == 0) | (result.corrwith(df) >= 0.9)).all()
160 return result

AssertionError:

After some research I find the correlation is not match the assert
image

What should I do in this case ?

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