On line 249, you have: "return np.inf" with lower case i but on line 326 you have "best_val_loss=np.Inf" with upper case I.
The latter one is deprecated in Numpy 2.0 and causes an error with e.g. Autogen (or pyautogen):
AttributeError: np.Inf was removed in the NumPy 2.0 release. Use np.inf instead.. Did you mean: 'inf'?
File "\Lib\site-packages\flaml\automl\automl.py", line 15, in
from flaml.automl.state import SearchState, AutoMLState
Line 326, in
best_val_loss=np.Inf,
flaml/automl/ml.py
On line 249, you have: "return np.inf" with lower case i but on line 326 you have "best_val_loss=np.Inf" with upper case I.
The latter one is deprecated in Numpy 2.0 and causes an error with e.g. Autogen (or pyautogen):
AttributeError:
np.Inf
was removed in the NumPy 2.0 release. Usenp.inf
instead.. Did you mean: 'inf'?File "\Lib\site-packages\flaml\automl\automl.py", line 15, in
from flaml.automl.state import SearchState, AutoMLState
Line 326, in
best_val_loss=np.Inf,