You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
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
🐛 Bug
To Reproduce
Steps to reproduce the behavior:
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.Expected behavior
Environment
Additional context
The text was updated successfully, but these errors were encountered: