An error of example/pinn_forward/Helmholtz_Dirichlet_2d_HPO.py #1445
lijialin03
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Function 'gp_minimize' of package 'skopt (scikit-optimize)' is used in this example and an error has been reported like,
![16e8051a98747fcc62553d09c11b873b](https://private-user-images.githubusercontent.com/124568209/261553093-a4c21d4a-4170-4fd1-a7f0-20c038522b20.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkwMjgyOTAsIm5iZiI6MTcxOTAyNzk5MCwicGF0aCI6Ii8xMjQ1NjgyMDkvMjYxNTUzMDkzLWE0YzIxZDRhLTQxNzAtNGZkMS1hN2YwLTIwYzAzODUyMmIyMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjIyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyMlQwMzQ2MzBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01MzNhZjRkNTdkMDEzNmU0Y2IxN2I3MDI1Mjg4M2Y5MjNmNDJmNWJlYjk2ODc4MDBkYzA5M2E1M2JlNWZjNjFlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.rij-IFtypVeRGHZq18CxcbGxZ1VjCmTwYzhNMD0CqAg)
The reason is that 'np.int' used in skopt was deprecated in NumPy 1.20. The newest NumPy is version 1.25.
My skopt version is 0.9.0. I think it is the latest version in https://pypi.org/search/?q=scikit-optimize. So this example may require NumPy 1.20 or lower while there is no version requirements of NumPy in requirements.txt.
Beta Was this translation helpful? Give feedback.
All reactions