Function xgboost_sys::XGBoosterLoadModelFromBuffer
source · pub unsafe extern "C" fn XGBoosterLoadModelFromBuffer(
handle: BoosterHandle,
buf: *const c_void,
len: bst_ulong
) -> c_int
Expand description
\brief load model from in memory buffer \param handle handle \param buf pointer to the buffer \param len the length of the buffer \return 0 when success, -1 when failure happens