dmatrix2np
dmatrix2np copied to clipboard
Convert XGBoost's DMatrix format to np.array
If I do ```python from dmatrix2np import dmatrix_to_numpy x_test = xgboost.DMatrix(test_data_df) x_test_np = dmatrix_to_numpy(x_test) ``` I get ``` --------------------------------------------------------------------------- OSError Traceback (most recent call last) /tmp/ipykernel_23836/416855278.py in 1 from dmatrix2np...
Hi guys, I got this error while trying to convert a dmatrix to a numpy array : error: unpack requires a buffer of 1 bytes Here is my code: `import...