public XGBooster(string fileName, int silent = 1) { IntPtr tempPtr; var newBooster = XGBoostNative.XGBoosterCreate(null, 0, out tempPtr); var output = XGBoostNative.XGBoosterLoadModel(tempPtr, fileName); if (output == -1) { throw new DllFailException(XGBoostNative.XGBGetLastError()); } handle = tempPtr; }