From 9959c2aad6553f27f4e2dbb71ca647e7f75bd0e0 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Wed, 26 Oct 2022 10:09:28 -0700 Subject: [PATCH] Expose set_param --- src/booster.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/booster.rs b/src/booster.rs index 634a71d..ac5c172 100644 --- a/src/booster.rs +++ b/src/booster.rs @@ -533,7 +533,7 @@ impl Booster { xgb_call!(xgboost_sys::XGBoosterSaveRabitCheckpoint(self.handle)) } - fn set_param(&mut self, name: &str, value: &str) -> XGBResult<()> { + pub(crate) fn set_param(&mut self, name: &str, value: &str) -> XGBResult<()> { let name = ffi::CString::new(name).unwrap(); let value = ffi::CString::new(value).unwrap(); xgb_call!(xgboost_sys::XGBoosterSetParam(self.handle, name.as_ptr(), value.as_ptr()))