#[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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.