From 094d0a4497792e04cde8566caa54504798929585 Mon Sep 17 00:00:00 2001 From: tqchen Date: Sun, 25 May 2014 10:18:04 -0700 Subject: [PATCH] add rand seeds back --- python/xgboost.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/xgboost.py b/python/xgboost.py index 022751a6d..070fe6593 100644 --- a/python/xgboost.py +++ b/python/xgboost.py @@ -121,6 +121,7 @@ class Booster: assert isinstance(d,DMatrix) dmats = ( ctypes.c_void_p * len(cache) )(*[ d.handle for d in cache]) self.handle = ctypes.c_void_p( xglib.XGBoosterCreate( dmats, len(cache) ) ) + self.set_param( {'seed':0} ) self.set_param( params ) def __del__(self): xglib.XGBoosterFree(self.handle)