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

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (6,) + inhomogeneous part. #213

Open
gaohai2017 opened this issue May 29, 2024 · 1 comment

Comments

@gaohai2017
Copy link

🐛 Bug

To Reproduce

Steps to reproduce the behavior:

  1. run sklift.metrics.uplift_by_percentile,sklift.metrics.plot_uplift_by_percentile,raise error: ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (6,) + inhomogeneous part.
  2. git code url : https://github.com/maks-sh/scikit-uplift/blob/master/notebooks/uplift_metrics_tutorial.ipynb

Expected behavior

Environment

  • scikit-uplift version (0.5.1):
  • pandas version (2.2.2):
  • numpy version (1.26.4):

Additional context

@gaohai2017
Copy link
Author

the error caused by numpy version, and the same time, you should install the appropriate version of pandas & sklift accordingly.
the follow version works:
pandas 2.0.3
scikit-uplift 0.3.2
numpy 1.21.6

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