コード例 #1
0
ファイル: XGBooster.cs プロジェクト: jcapellman/XGBoost.Net
        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;
        }