From 762b36073997f7de2aa8f98b7bf6a86baeb710ff Mon Sep 17 00:00:00 2001 From: tqchen Date: Tue, 19 Aug 2014 08:42:36 -0700 Subject: [PATCH] fix typo --- python/xgboost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/xgboost.py b/python/xgboost.py index 509fe654a..4a27f2377 100644 --- a/python/xgboost.py +++ b/python/xgboost.py @@ -121,7 +121,7 @@ class DMatrix: # slice the DMatrix to return a new DMatrix that only contains rindex def slice(self, rindex): res = DMatrix(None) - res.handle = ctype.c_void_p(xglib.XGDMatrixSliceDMatrix( + res.handle = ctypes.c_void_p(xglib.XGDMatrixSliceDMatrix( self.handle, (ctypes.c_int*len(rindex))(*rindex), len(rindex))) return res