From 978216d35064df443a8a0083059f125b1785492f Mon Sep 17 00:00:00 2001 From: Skipper Seabold Date: Mon, 18 May 2015 11:43:58 -0500 Subject: [PATCH] ENH: Allow missing = 0 --- wrapper/xgboost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrapper/xgboost.py b/wrapper/xgboost.py index fe6840034..bb61083c4 100644 --- a/wrapper/xgboost.py +++ b/wrapper/xgboost.py @@ -920,7 +920,7 @@ class XGBModel(XGBModelBase): self.base_score = base_score self.seed = seed - self.missing = missing or np.nan + self.missing = missing if missing is not None else np.nan self._Booster = None