try python
This commit is contained in:
15
python/xgboost.py
Normal file
15
python/xgboost.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# module for xgboost
|
||||
import ctypes
|
||||
|
||||
# load in xgboost library
|
||||
#xglib = ctypes.cdll.LoadLibrary('./libxgboostpy.so')
|
||||
|
||||
# entry type of sparse matrix
|
||||
class REntry(ctypes.Structure):
|
||||
_fields_ = [("findex", ctypes.c_uint), ("fvalue", ctypes.c_float) ]
|
||||
|
||||
|
||||
class DMatrix:
|
||||
def __init__(fname = None):
|
||||
self.__handle = xglib.
|
||||
|
||||
Reference in New Issue
Block a user