#[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 moreSource§impl Debug for XGBoostBatchCSR
impl Debug for XGBoostBatchCSR
impl Copy for XGBoostBatchCSR
Auto Trait Implementations§
impl Freeze for XGBoostBatchCSR
impl RefUnwindSafe for XGBoostBatchCSR
impl !Send for XGBoostBatchCSR
impl !Sync for XGBoostBatchCSR
impl Unpin for XGBoostBatchCSR
impl UnwindSafe for XGBoostBatchCSR
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more