automl / ConfigSpace

Domain specific language for configuration spaces in Python. Useful for hyperparameter optimization and algorithm configuration.
https://automl.github.io/ConfigSpace/
Other
202 stars 93 forks source link

ConfigSpace numpy issue #324

Closed FatemehTahavori closed 1 year ago

FatemehTahavori commented 1 year ago

To replicate the issue : conda create --name my_env python=3.8
and install the package and run the tests
The reason is https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

test_configspace_from_dict.py:53 /ConfigSpace/test/test_configspace_from_dict.py:53: DeprecationWarning: np.int is a deprecated alias for the builtin int. To silence this warning, use int by itself. Doing this will not modify any behavior and is safe. When replacing np.int, you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations UniformIntegerHyperparameter("hp", -5, 5),

eddiebergman commented 1 year ago

Yup, this is a deprecation warning and was fixed in a recent PR.

I'm back from holidays so I'd like to merge this in soon :)

FatemehTahavori commented 1 year ago

Ok thanks you can close the issue after your PR is merged.