scikit-uplift icon indicating copy to clipboard operation
scikit-uplift copied to clipboard

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.

Open gaohai2017 opened this issue 8 months ago • 1 comments

🐛 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 avatar May 29 '24 09:05 gaohai2017