Closed mohammalmokdad13 closed 1 year ago
Hi,
First of all, thank you for reaching out and raising the issue from GitHub. Thank you also for providing the detailed information, it made the issue easy to replicate.
Indeed, we found a bug/issue due to a wrong reshape when broadcasting a matrix operation for high-dimension problems (when $D>32$). So thank you for highlighting the issue! We already fixed it, and in a few days, the new patch version of PyBADS will be available on PyPI (pip
) and conda
. So you will be able to upgrade your package.
As a side note - from the information you provided, it seems you are testing PyBADS on some high-dimensional optimization problems ($D > 20$). Keep in mind that PyBADS has been designed for problems where the number of input parameters is up to about D = 20 or so, so PyBADS might not be very effective in higher dimensions (see this page of the documentation, and for more practical recommendations you can also follow this FAQ for the usage of (Py)BADS algorithm (including both Matlab and Python versions).
My objective function can accept vectors of different sizes. Using a size of 60:
Using a length of 32 works, anything greater does not. This is due to the limitation in numpy array dimension not exceeding 32.