google / uncertainty-baselines

High-quality implementations of standard and SOTA methods on a variety of tasks.
Apache License 2.0
1.46k stars 203 forks source link

[NumPy] Remove references to deprecated NumPy type aliases. #1231

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

[NumPy] Remove references to deprecated NumPy type aliases.

This change replaces references to a number of deprecated NumPy type aliases (np.bool, np.int, np.float, np.complex, np.object, np.str) with their recommended replacement (bool, int, float, complex, object, str).

NumPy 1.24 drops the deprecated aliases, so we must remove uses before updating NumPy.