scikit-uplift
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.
🐛 Bug
To Reproduce
Steps to reproduce the behavior:
- 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. - 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):