diff --git a/lale/datasets/uci/uci_datasets.py b/lale/datasets/uci/uci_datasets.py index 532d938db..3c63be405 100644 --- a/lale/datasets/uci/uci_datasets.py +++ b/lale/datasets/uci/uci_datasets.py @@ -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"}, { diff --git a/lale/lib/xgboost/xgb_classifier.py b/lale/lib/xgboost/xgb_classifier.py index 3ffb9d268..9751b3937 100644 --- a/lale/lib/xgboost/xgb_classifier.py +++ b/lale/lib/xgboost/xgb_classifier.py @@ -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.", }, diff --git a/lale/lib/xgboost/xgb_regressor.py b/lale/lib/xgboost/xgb_regressor.py index 619625a10..944eb07e6 100644 --- a/lale/lib/xgboost/xgb_regressor.py +++ b/lale/lib/xgboost/xgb_regressor.py @@ -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.", },