From b76853731c5956814fa47fc5ef6a85d513822b3b Mon Sep 17 00:00:00 2001 From: Bing Xu Date: Mon, 18 Aug 2014 02:10:54 -0400 Subject: [PATCH] make it compatible with old code --- python/xgboost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/xgboost.py b/python/xgboost.py index f47642898..6ea1cd921 100644 --- a/python/xgboost.py +++ b/python/xgboost.py @@ -134,7 +134,7 @@ class Booster: xglib.XGBoosterSetParam( self.handle, ctypes.c_char_p(k.encode('utf-8')), ctypes.c_char_p(str(v).encode('utf-8'))) - def update(self, dtrain, it): + def update(self, dtrain, it=1): """ update """ assert isinstance(dtrain, DMatrix) xglib.XGBoosterUpdateOneIter(self.handle, it, dtrain.handle)