public void SetParameter(string name, string val) { int output = XGBoostNative.XGBoosterSetParam(handle, name, val); if (output == -1) { throw new DllFailException(XGBoostNative.XGBGetLastError()); } }