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
fix: Ensure the "center" of CMAES is 1-dimensional (#111)
Addressed issue:
#110
During the initialization of CMAES, the center
point of the search was generated not as a vector
of length `n`, but as a tensor of shape `(1, n)`.
Because of this, the reported "center" solution
in the status dictionary also ended up with an
unexpected leftmost dimension with size 1.
This fix introduces a `squeeze()` operation on
the initial center tensor, and also a shape
verification, ensuring that the center tensor is
1-dimensional and has a correct length.
With these changes, the reported "center" in the
status dictionary becomes 1-dimensional.
0 commit comments