Struct xgboost_sys::XGBoostBatchCSR
source · #[repr(C)]pub struct XGBoostBatchCSR {
pub size: usize,
pub offset: *mut i64,
pub label: *mut f32,
pub weight: *mut f32,
pub index: *mut c_int,
pub value: *mut f32,
}
Expand description
\brief Mini batch used in XGBoost Data Iteration
Fields§
§size: usize
\brief number of rows in the minibatch
offset: *mut i64
§label: *mut f32
\brief labels of each instance
weight: *mut f32
\brief weight of each instance, can be NULL
index: *mut c_int
\brief feature index
value: *mut f32
\brief feature values
Trait Implementations§
source§impl Clone for XGBoostBatchCSR
impl Clone for XGBoostBatchCSR
source§fn clone(&self) -> XGBoostBatchCSR
fn clone(&self) -> XGBoostBatchCSR
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more