Merge pull request #5 from tqchen/dev

add return type for xgboost, don't know if it is mac problem. #4
This commit is contained in:
Tianqi Chen 2014-05-17 09:19:20 -07:00
commit 049e8cfb2d

View File

@ -22,6 +22,7 @@ xglib.XGDMatrixNumRow.restype = ctypes.c_ulong
xglib.XGDMatrixGetLabel.restype = ctypes.POINTER( ctypes.c_float )
xglib.XGDMatrixGetWeight.restype = ctypes.POINTER( ctypes.c_float )
xglib.XGDMatrixGetRow.restype = ctypes.POINTER( REntry )
xglib.XGBoosterCreate.restype = ctypes.c_void_p
xglib.XGBoosterPredict.restype = ctypes.POINTER( ctypes.c_float )
def ctypes2numpy( cptr, length ):