Skip to content

Fix loss_function_sm for recent numpy compatibility#1712

Merged
bottler merged 1 commit intomainfrom
bottler/numpyfix
Mar 16, 2026
Merged

Fix loss_function_sm for recent numpy compatibility#1712
bottler merged 1 commit intomainfrom
bottler/numpyfix

Conversation

@bottler
Copy link
Copy Markdown
Contributor

@bottler bottler commented Mar 16, 2026

fixes #1707

Use .item() instead of float() on model.predict() result to avoid
"only 0-dimensional arrays can be converted to Python scalars" TypeError.
@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Mar 16, 2026
@bottler bottler merged commit bc49905 into main Mar 16, 2026
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NGOpt is incompatible with numpy 2.4.0

1 participant