Skip to content

Commit

Permalink
Numpy 2.0 removes np.NaN. (#1376)
Browse files Browse the repository at this point in the history
  • Loading branch information
hirzel authored Jul 25, 2024
1 parent 165a4c0 commit 7fd8cc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lale/datasets/uci/uci_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def fetch_drugscom():
{"description": "drugName", "type": "string"},
{
"description": "condition",
"anyOf": [{"type": "string"}, {"enum": [np.NaN]}],
"anyOf": [{"type": "string"}, {"enum": [np.nan]}],
},
{"description": "review", "type": "string"},
{
Expand Down
4 changes: 2 additions & 2 deletions lale/lib/xgboost/xgb_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,10 +789,10 @@ def score(self, X, y):
"type": "number",
},
{
"enum": [None, np.NaN],
"enum": [None, np.nan],
},
],
"default": np.NaN,
"default": np.nan,
"description": "Value in the data which needs to be present as a missing value. If"
" If None, defaults to np.nan.",
},
Expand Down
4 changes: 2 additions & 2 deletions lale/lib/xgboost/xgb_regressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,10 @@ def score(self, X, y):
"type": "number",
},
{
"enum": [None, np.NaN],
"enum": [None, np.nan],
},
],
"default": np.NaN,
"default": np.nan,
"description": "Value in the data which needs to be present as a missing value. If"
" If None, defaults to np.nan.",
},
Expand Down

0 comments on commit 7fd8cc7

Please sign in to comment.