-
Notifications
You must be signed in to change notification settings - Fork 19
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 (339,) + inhomogeneous part #46
Comments
Hi @jeremyhermann, Thanks for submitting this issue.
|
Hi, chiming in, I observed the same issue occur a while ago using PowerShap with Optuna . I tracked it down to TTestPower().solve_power call in utils.py issuing a warning Line 51 in 4a60fbe
In that case, after appending the result to required_iterations list, we end up with inhomogeneous shape and it leads to an error during conversion of required_iterations to numpy array here: Line 72 in 4a60fbe
Logging the solve_power returns in each iteration:
Here's a repro from trial that errored out for me. |
@jvdd @JarneVerhaeghe - this appears highly similar to the error that I obtained when updating the dependencies. |
I'm having the same error since upgrading to NumPy 1.24.1. Looks like it was caused by a breaking change in NumPy. |
I'm still experiencing the same error, would it be possible to adjust the code to make it compatible with later versions of NumPy? |
Do you know why I'd get this error when running PowerShap?
The text was updated successfully, but these errors were encountered: