Function xgboost_sys::XGDMatrixSetFloatInfo
source · pub unsafe extern "C" fn XGDMatrixSetFloatInfo(
handle: DMatrixHandle,
field: *const c_char,
array: *const f32,
len: bst_ulong
) -> c_int
Expand description
\brief set float vector to a content in info \param handle a instance of data matrix \param field field name, can be label, weight \param array pointer to float vector \param len length of array \return 0 when success, -1 when failure happens